I have a firmware which uses FDS to store configuration, and I want to set some defaults at manufacture. The data might be hundreds of bytes. I could write the data as a binary blob to flash using nrfjprog, and on first boot load this data into memory and write it back to flash using FDS, however I thought it might be simpler to write it directly to flash in the format FDS expects, I can see the format is documented here.
- Is writing to flash in FDS format a good approach, or do you have any other suggestions?
- I don't suppose there is a python or C library for formatting data in FDS format?
- Can I just tag the first page as data (2 header bytes) and then write the records required in the format described in the link above?
- Do I need to tag another page as swap?