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

Pstorage Allocating More Flash Pages Moves Existing Pages

Hello,

Setup: SDK 9.0 SD 8.0.0

I have an application where we are using Pstorage to store persistent system settings.

When I flashed the device we were using this setting in pstorage_platform.h #define PSTORAGE_NUM_OF_PAGES (2) Everything worked great. I was able to perform DFU update of the same firmware version and settings were preserved.

However, in a later version of firmware I performed a DFU update and changed the number of pstorage pages to this: #define PSTORAGE_NUM_OF_PAGES (10)

It seems that the original location of the orininal settings changes because all of them were lost. Did the change the PSTORAGE_NUM_OF_PAGES somehow change where the pages are stored in memory. I did not add any additional storage. Just changed the number of pages and this was result.

Lucas

Parents Reply Children
No Data
Related