Write specific data to the data flash and then power cycle. After booting, when you read the data in the data flash, the data in the data flash is cleared to 0.
Are there any possible reasons why the data is cleared to 0?
Solved! Go to Solution.
Hello,
Hmm, that is not possible.
After writing data to the flash, did you verify that data are present in flash? Not just in the debugger GUI, but physically loaded in flash?
Once the data are loaded into flash, only way to remove them is to perform erase procedure.
I would guess, that your data was not programmed into uC and you see them only in debugger GUI.
Best regards,
Peter
Thank you for your answer.
The cause was that the debug code was misbehaving and overwriting it with 0.
Sorry about the fuss.
Hello,
Hmm, that is not possible.
After writing data to the flash, did you verify that data are present in flash? Not just in the debugger GUI, but physically loaded in flash?
Once the data are loaded into flash, only way to remove them is to perform erase procedure.
I would guess, that your data was not programmed into uC and you see them only in debugger GUI.
Best regards,
Peter