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

Flash Data Storage place in memory

Hi,

I'm using the FDS library to store some data (configuration data). For production, I'd like to flash an initial configuration to the nRF52832. I know the storage format because it is well documented in the FDS library documentation, but I don't know where I should write the initial data in flash. In what way does the FDS library figure out where to store the data?

Does anyone have experience with this case?

Parents
  • I know this doesn`t exactly answer your question, but what I do is have my initial values in my sourcecode. Then on startup I check, if the Entry with my rec_key and file_id exists. If not, it is the first startup since flashing the code so I create the entry. Otherwise I update/read the config (if I want to). Of course this will have you read the flash every time you restart your device but you have to do the read anyways if you want to access your config. On the other hand you can then do something like a "factory reset" even if you overwrite your initial data.

Reply
  • I know this doesn`t exactly answer your question, but what I do is have my initial values in my sourcecode. Then on startup I check, if the Entry with my rec_key and file_id exists. If not, it is the first startup since flashing the code so I create the entry. Otherwise I update/read the config (if I want to). Of course this will have you read the flash every time you restart your device but you have to do the read anyways if you want to access your config. On the other hand you can then do something like a "factory reset" even if you overwrite your initial data.

Children
No Data
Related