Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Set device configuration defaults at manufacture

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.

  1. Is writing to flash in FDS format a good approach, or do you have any other suggestions?
  2. I don't suppose there is a python or C library for formatting data in FDS format?
  3. 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?
    1. Do I need to tag another page as swap?
Parents Reply Children
No Data
Related