cancel
Showing results for 
Search instead for 
Did you mean: 

Protect eeprom simulated variables

vivalaoligarquia3
Associate
Posted on July 02, 2015 at 02:02

Im using firmware for eeprom emulation as outlined here : 

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCIQFjAA&url=http://www.st.com/web/en/resource/technical/document/application_note/CD00165693.pdf&ei=cX6UVeOnNcm1ogSeqY-IDA&usg=AFQjCNFn85e9acjS559APcY9HORPEbwb3Q&sig2=pQg8FLaUpSYWTtwXKa4gJA

However I'm pretty new to this and can't seem to figure out if there is a way to prevent my program from being too big and over witting the data that I want to save. 

From what I know, it simply saves the variables in a specified address and is able to recover them on reboot. However, the code is constantly being updated and I was worried that somebody will inadvertently overwrite the variables that I want to save.

Does this make sense?

#eeprom-emulation
1 REPLY 1
Posted on July 02, 2015 at 02:44

So shrink the FLASH allocation reported to the linker so that it doesn't include the space you're using for the EEPROM at the end of flash space.

You'd do this via project's target menu options, scatter files, or linker scripts, or whatever method you're tools documentation describe.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..