Author Topic: Accidentally delete bootloader?  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
Accidentally delete bootloader?
« 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.


Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,653
  • Helpful? 169
    • Society of Robots
Re: Accidentally delete bootloader?
« Reply #1 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 . . .

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
Re: Accidentally delete bootloader?
« Reply #2 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)
« Last Edit: August 02, 2008, 04:53:44 PM by pomprocker »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,653
  • Helpful? 169
    • Society of Robots
Re: Accidentally delete bootloader?
« Reply #3 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 . . .

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
Re: Accidentally delete bootloader?
« Reply #4 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.

 


Get Your Ad Here

data_list