Hello Nordic Team,
I am currently working with the nRF Connect SDK v2.4.0 in VS_Code to develop applications for custom boards based on the nRF52840 microcontroller. Certainly we want to write data and then read data stored in flash memory.
To be specific what we are trying to do is:
Storing the data received from BLE device in flash memory to ensure persistence even when the device is rebooted. Received values are stored in config structures, which are variables in RAM memory. When these values change, we write them to flash in a config file. Upon system restart, we need to read the config values from flash (from the config file) into our variables to be used in the code.
We have explored the "Non-Volatile Storage (NVS)" program, but we are seeking clarification on whether this is the most appropriate Zephyr module for the described process or if there is another module recommended by Nordic that better suits our needs.
Could you please advise us on the Zephyr module that aligns with our requirement for persistent storage of settings in flash memory? Additionally, if there are any specific examples or documentation related to this module, it would greatly assist us in implementing this feature seamlessly into our project.
Thanks & Regards
Anmol