Go Down

Topic: BOOTLOADER  (Read 651 times) previous topic - next topic

achimpieters

Hello all,

I have a question: After having read several inscrutables about uploading a new bootloader, I am left with a question / problem, namely:

Is it possible to place the new bootloader on an arduino which has the "Old version" installed?

I have an arduino nano clone with the "old bootloader", but I would like to provide it with the new bootloader.

When I try to upload the new bootloader I always get the message: avrdude: stk500_getsync () attempt 1 or 10: not in sync: resp = 0x49

Can someone help me with this?

Thanks in advance! smiley-lol:

westfw

Quote
Is it possible to place the new bootloader on an arduino which has the "Old version" installed?
Yes.  The usual "burn bootloader" procedures will simply overwrite any bootloader that was already there.
(in fact, ISP programming does a full "chip erase" before sending new code.)


Quote
I always get the message: avrdude: stk500_getsync () attempt 1 or 10: not in sync: resp = 0x49
Can someone help me with this?
We'd need a lot more details.
Nick Gammon's tutorial is one of the best:  http://www.gammon.com.au/forum/?id=11635

AWOL

CAUTION: also posted in the Nederlands section
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

westfw

  • You are missing a wire from D10 (of the "programmer") to RESET (of the target board to be re-programmed.)
  • 5V of the programmer should probably be connected to 5V of the target, rather than Vin - otherwise you'll get some voltage drop through the regulator.
  • You may need a moderate sized capacitor (10-100uF) between reset and GND of the "programmer" board (added AFTER your load Arduino As ISP.)
  • To program the new bootloader, you should have the "board" set to Nano rather than "nano (old bootloader."



The Full Process has essentially 3 steps:
  • Configure some Arduino board as the programmer.  Use whatever board type and port is needed to upload the "ArduinoISP" Example to the programmer board.  Connect the cap between Reset and GND of the programmer board.  Set the "Programmer" type to "Arduino as ISP" (which is, alas, different than "ArduinoISP")
  • Wire the Programmer board to the target.  In theory, you should turn off power to both boards while you do this.  You need 6 pins of the target connected: MISO, MOSI, SCLK, RESET, GND, and power (power need not be connected to the programmer, but can be.)
  • Do the actual "burn" - set the  "Board" to the desired target, leave the port and programmer set as in (1), and use the "Burn Bootloader" command.   Power everything down, and disconnect.



westfw

Yes, that looks good (except for the power/gnd connections of the "programmer", which are both off-by-1.

westfw

Great!

Could you attach/post or otherwise publish your fritzing source for the diagrams you made?
They're quite nice (excepting the errors), and since I didn't see a "Nano to Nano" set of pictures in the other tutorials I glanced at, it might be useful...  Thanks!

Go Up