Society of Robots - Robot Forum

Software => Software => Topic started by: vidam on August 02, 2008, 03:22:48 PM

Title: Accidentally delete bootloader?
Post by: vidam on August 02, 2008, 03:22:48 PM
Hi,

I'm wondering how do people accidentally delete a bootloader from the Axon using their hardware programmer?

I use the hardware programmer routinely to upload Axon.hex to the Axon. I read somewhere in the FAQ that you can accidentally delete the bootloader but it didn't say how you do it.

Title: Re: Accidentally delete bootloader?
Post by: Admin on August 02, 2008, 03:33:49 PM
Well, I programmed the lockbits so that you can't over write it, but the lockbits seemed to unlock itself on some of the Axons. Could be an AVR Studio bug . . .

To overwrite the bootloader, the lookbit has to be unlocked, and you would have to write code that explicitly overwrote memory in the boot section. Writing to random address locations could do it.

Its pretty hard to do by accident . . .
Title: Re: Accidentally delete bootloader?
Post by: pomprocker on August 02, 2008, 04:52:37 PM
when you erase/reset an mcu, the bootlock and lock fuses are reset.

just dont erase first maybe just overwrite the spm (self programmable memory)
Title: Re: Accidentally delete bootloader?
Post by: Admin on August 02, 2008, 05:07:33 PM
I think its just on erase, wouldn't make sense for the bits to unwrite on a power reset . . .
Title: Re: Accidentally delete bootloader?
Post by: pomprocker on August 02, 2008, 06:08:02 PM
I think in PonyProg if you select reset MCU, it clears its memory and resets it to factory default settings.