I have a structure that holds my configuration data for my device. When manufactured, the programming station will flash a hex file to device that has the application and device specific data to a certain location in flash--the device specific data will match the structure of configuration data.
The idea is, that when the device is flashed, then power cycled, the application will load the configuration data from a flash location on first boot up, then it will use the FDS module to save that configuration data to flash, and from there on out the application will use FDS module to save/load the data as needed.
What would be the best way to accomplish this? Using linker script and __attribute__ to allocate a section of data in flash? Is there maybe a way to write to the area of flash (with HEX file) that FDS will be using so the first time fds_record_find is called, it will find the file?
What are my best options? (Using nRF5 SDK v16.0.0)