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

Updating data in flash memory using fstorage.

Hi,

I am using SDK12.3 and stack s132 with NRF52832. We have to store 3 variables in flash memory and keep updating it once BLE connection is formed with the phone. We were using fstorage to read and write the data. It seems like fstorage doesn't update the data but we need to erase the full page first and then write the data again. 

Since these 3 variables are independent of each other and would get updated at different times, should we save them in different pages? If this is correct, then how should we erase the pages individually i.e the second page first and then the first page. 

Looking forward to getting some feedback on this.

Related