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

Data storing in flash based on timer.

Hello,

I am working on NRF52382 custom board, where I am running a timer of 30 sec to get a value every 30 sec.

I want to save this value in flash.I am well aware of flash data storage read and write operation. These values are part of an array which will be further used for evaluation. Now if I write a value to specific File ID(0x2222) and KEY(0x1111), it is deleting the previous record.(30 sec later I have to store another value.) I want to write like it append the new value to the same File ID and KEY, and at the time of retrieval, I can read it as an array.

I thought of going through same File ID and a incremented key for every new value.

*I cannot store the whole array after completion of work because of battery issue for the same reason of battery I want to persist the data.

Please suggest something how to achieve this task.

Related