PROGRAMMING WITHOUT LOOSE DATA IN EEPROM

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

REPROGRAMMING AVR YOU LOOSE ALSO THE DATA IN EEPROM.IF I COPY THESE DATA IN RAM BEFORE PROGRAMMING, AND ASSUMING NO POWER OFF, WILL DATA BE INCORRUPTED
WHEN PROGRAMMING ENDS? THERE COULD BE SOME UNKNOWN FACTOR THAT DESTROYS MY
DATA? I DON'T HOPE SO. HAVE YOU ANY SUGGESTION ?

charlie

If at first you don't suceed...
hook up the logic analyzer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Charlie,

If you do not use the lock bits you can read the EEPROM before erasing the part (it is the erase that erases the EEPROM- not the programming). If you have read the EEPROM you can reprogram it after the erase.

If you have to use the lockbits on you could in theory copy the EEPROM data into the SRAM to be able to read out the EEPROM this way. If the SRAM is initialised (which is done automatically in some compilers by linking in some initialisation routines) or power is toggled the SRAM should be expected lost.

Jacob L. Lassen
Field Application engineer, AVR products, Atmel

admin's test signature