2015-07-01 05:02 PM
Im using firmware for eeprom emulation as outlined here :
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-emulation2015-07-01 05:44 PM
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.