This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

about Flash memory

Dear all,

In my application main function I am reserving 20 Bytes in Flash(using the pstorage_register(), so I can not manipulate adresses directly) , I store variables in Flash (using pstorage_store()) and then I disconnect the nRF51 SoC from power. How am I sure that if I turn on the nRF51, and I reserve the 20 Bytes again, and then I load values from Flash, I will get the old values stored ?

I wish my question was clear.

Thanks.

Parents
  • That should work just fine. As long as you do your pstorage init with the same parameters every time you power up, you should be able to get your data back from the flash memory. I do this with a number of things like serial numbers that need to survive power downs.

Reply
  • That should work just fine. As long as you do your pstorage init with the same parameters every time you power up, you should be able to get your data back from the flash memory. I do this with a number of things like serial numbers that need to survive power downs.

Children
No Data
Related