This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Pstorage as EEPROM Replacement

I have an application that we have ported to the nRF52 that used an EEPROM to manage configuration values. This application doesn't update these values often but when they are updated there are normal updated as a group of between 4 and 5 values during a BLE connection.

My questions are:

  1. Given that these parameters get updated in groups is it better to keep all the parameters in RAM and update them all at once or use the pstoarge builtin queue mechanism?
  2. How can I protect against corruption in the event that power is removed during a write operation?
  3. What is the best way to determine if the flash has been initialized on boot?

Thanks, Darren

Parents Reply Children
No Data
Related