This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C129DNCPDT: Getting problem in EEPROM data store,

Part Number: TM4C129DNCPDT

Tool/software: TI C/C++ Compiler

Hello,

I am using EEPROM to store the some data in it as well as i had implemented the web_page using EEPROM storage (g_sparameter of structure given in the example code ) 

in the web_page variables i  am storing the structure and log data was storing using EEPROMProgram and EEPROMRead API's in that every thing is working fine till here but once the Device get the power off and ON at the time structure variables are going to default state (if change in the structure data in web_page) but EEPROM read and program data is stable 

Please help out off this,

thanks 

  • Hello Chethan,

    I'm having a bit of difficulty following your question here. 

    If I am understanding it fine, then the issue is that variables you are using to track the EEPROM data stored in RAM are being cleared on reset, and then they re-initialize and are not pointing to the correct locations in EEPROM?

    Is that the extent of the issue, or is there something else going on?

    RAM is volatile memory so it will always be wiped on loss of power, so perhaps if those variables are important then you need to consider storing these in Flash instead. It would be slower, but it would help avoid the power down issue.