cancel
Showing results for 
Search instead for 
Did you mean: 

EEPROM - Reading Value from Before Reset

FFOO
Visitor

Hi,

I'm using the software EEPROM to save a variable to flash that is being updated during run time, that I would like to read in case the system resets. Whenever the system resets, for stability, it writes a line of "dummy" 0's to the next available location, and sets the virtual address to the address after that. Is it possible to retrieve this value from before the dummy 0's easily? I've seen people suggest parsing through the page to find the correct value on different forums, with slightly different use cases, but it seems to me that this should already be available somewhere in the EE_Init() function, as already seems to find the next location, but I'm struggling to understand what is driving it. I was hoping EE_ReadVariable would take -1 as a virtual Address, but it doesn't seem to give me the correct result. 

FFOO_0-1723508269393.png

Any help appreciated

Many Thanks

 

 

0 REPLIES 0