AnsweredAssumed Answered

Writing to Flash Memory TWR-KW24D512

Question asked by Robert Frumusa on Jul 22, 2015
Latest reply on Jul 27, 2015 by AngelC



I am Currently developing with the TWR-KW24D512 evaluation board. I am trying to write to flash memory to save important variables that I collect when the code first starts. The reason for this is  right now I am testing with low power modes that act as a reset when it wakes from low power mode. I don't want to have to run through the beginning of my code that initializes those variables because it is very time consuming.


Right now the variables are being saved to ram, but when the processor goes into low power mode, the ram gets reset and all of my variables are lost. My thought to fix this is to declare space in the flash and then save the variables there and then just retrieve them after the processor wakes from low power mode.


Would anyone know the best way to start saving variables to flash? Or would anyone be able to point me to a document that explains how to write to flash?


Thank you