<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How can I pre-program default NVS entries during manufacturing?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122660/how-can-i-pre-program-default-nvs-entries-during-manufacturing</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jul 2025 13:31:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122660/how-can-i-pre-program-default-nvs-entries-during-manufacturing" /><item><title>RE: How can I pre-program default NVS entries during manufacturing?</title><link>https://devzone.nordicsemi.com/thread/541336?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 13:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfe4863d-15aa-49f9-ad88-4b3c2b8befd6</guid><dc:creator>harryle</dc:creator><description>&lt;p&gt;Thanks a lot for the suggestion!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I pre-program default NVS entries during manufacturing?</title><link>https://devzone.nordicsemi.com/thread/541115?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 06:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eb752d-ef63-42be-a4e3-bc7eeaf19169</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Unfortunately there are no official suggested ways or tools provided to do this. But easiest way could be that you could factory load NVS defaults by using Zephyr’s Settings subsystem (with CONFIG_SETTINGS_NVS), pinning the “storage” partition via a pm_static.yml. Googling for tools and found this external tool to generate a small binary image of that partition like &lt;a href="https://gitlab.com/oha4/zephyr-settings-generator"&gt;zephyr-settings-generator&lt;/a&gt;&amp;nbsp;. Finally, script your production flash to load both the application and that preload image. This way, on first boot your device sees exactly the default values you baked in and no manual provisioning step would be needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>