Pages: [1]   Go Down
Author Topic: Removing & replacing bootloader  (Read 3442 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've just got my TinyISP programmer - before I potentially destroy my limited supply of 168s/328s I just wanted to doublecheck my understanding....

1) If I upload may application .hex file to the chip with the programmer via the ICSP connector & AvrDude, this will overwrite the bootloader.

2) I can re-upload the bootloader via the prgrammer using the Arduino sw "Burn Bootloader" option and everything will be back to square one - clean but bootloaded chip?

Is that correct?
Cheers

Logged

Mobile, AL
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
CAUTION!-Slow Learner
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that should work - I upload (burn) hex files using the ISP pins lots of time and yes, it does overwrite the bootloader.

Yes, you "should" be able to burn the bootloader using "Burn Bootloader" option in the IDE, but doesn't work for me - the IDE just doesn't seem to work with my programmer.  BUT you can burn the bootloader back to the chip using your TinyISP and Avrdude.  Just burn it the same as any program and it's there.

The bootloader hex file in located in subfolder of the hardware folder of your Arduino folder.... I'm at work so can't give an exact path, but I think you can find it easy, just drill down from the hardware folder.

I do that same precedure you are thinking lots of time -

good luck, Ken H>

Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome - thanks Ken!
Logged

North Carolina
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!!! I had the same question.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16518
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
1) If I upload may application .hex file to the chip with the programmer via the ICSP connector & AvrDude, this will overwrite the bootloader.

I could be forgetful, it's been a while sense I've done anything other then just burn the bootloader into a chip, but I don't think #1 statement  is correct.

The bootloader lives in high flash memory and is protected from being erased by the fuse settings in the chip. I believe you can just burn your .hex file via USBtiny ICSP and not disturb the bootloader. But either way It does sound like you can do what you want even if it takes a second step later to erase the chip and reburn the bootloader.

Lefty
« Last Edit: January 21, 2011, 07:36:25 pm by retrolefty » Logged

Pages: [1]   Go Up
Jump to: