How can I pre-program default NVS entries during manufacturing?

In our Zephyr-based nRF project we store configuration in NVS.
For the production line we’d like every unit to leave the factory with default objects already written to flash, for example:

Key 1 : 0x01
Key 2 : 0xAA 0xBB

Is there a recommended workflow or CLI tool to:

  1. generate a binary blob that contains these NVS records, or

  2. write them directly to the NVS partition as part of the flashing script,

so that the firmware sees the values on first boot?

Any pointers, sample commands, or documentation links would be greatly appreciated.
(nRF Connect SDK 2.9.1, nRF9160)

Parents Reply Children
No Data
Related