AnsweredAssumed Answered

kea64 storing default settings in flash

Question asked by Krzysztof Szot on Mar 9, 2018
Latest reply on Mar 9, 2018 by Mark Butcher

Hello, 

I am trying to store default user settings in flash during programming so that when the device first boots up there are default values my user settings section of flash instead of it being filled with all FF's.  I am sure there is some thing simple i need to do in the code to assign these values during the build.  I can read and write the values after the initial flash but every time i make some code changes and flash the unit with new firmware these are the default 0xFFFFFFFF and i have to enter these again.  

   There has to be a #pragma or or declade as const something similar that I need to do in code but I am not sure what i need to do in the code, any help would be greatly appreciated.  

Outcomes