If I have persistent data that will be updated semi-frequently, will pstorage wear out the flash memory? What steps should I take to be sure my data storage will remain functional over a long time with multple updates?
If I have persistent data that will be updated semi-frequently, will pstorage wear out the flash memory? What steps should I take to be sure my data storage will remain functional over a long time with multple updates?
Hi Anthony,
SDK module 'pstorage' is an abstraction layer over the persistent memory you are using. Assuming you are using the default flash included in the nrf51 solution, it is recommended that you clear the flash before updating it again. It is recommended you read the nrf51 reference manual for details.
However, if your using nrf51 chip as a connectivity solution and you have alternate mechanism of storing the data, it depends on specification of this alternate mechanism and how you have ported the 'pstorage' module. Hope this helps!
Hi Anthony,
Further, there is no leveling done by the current implementation of pstorage in the SDK. If your requirement is specific to a certain sensor data, I would recommend you implement this in application reserving the pages you need for more advanced leveling technique you need.
Alternatively, you could enhance the implementation yourself as the source code is available to you. Techniques to have a map of actually physical address that are not worn out are nice, but complicate the implementation hugely.