kea64 storing default settings in flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kea64 storing default settings in flash

490 Views
krzysztofszot
Contributor I

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.  

0 Kudos
Reply
1 Reply

398 Views
mjbcswitzerland
Specialist V


Hi Krzysztof

See the links below for binary references showing the KEA64 using a parameter system that takes default values at startup and can the be modified as desired.


File and parameter system: http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF

Beware that when you load new code with debuggers they may delete also parameter storage areas even when not programming code there (check the debugger setting to see whether you can get it to delete only the area needing deletion for the code). If there are still issues you can install a boot loader for loading code with that preserves parameter areas.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html
Kinetis KEA64:
- http://www.utasker.com/kinetis/FRDM-KEAZ64Q64.html
- http://www.utasker.com/kinetis/TRK-KEA64.html

S32 Design Studio: http://www.utasker.com/kinetis/compilers.html#S32

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis

Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html

0 Kudos
Reply