<?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>Using Zephyr NVS with mcuboot - losing configuration on firmware update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47922/using-zephyr-nvs-with-mcuboot---losing-configuration-on-firmware-update</link><description>I&amp;#39;ve got my application wrapped in mcuboot for HTTP-based firmware updates which is working fine. In the past couple days I&amp;#39;ve enabled CONFIG_NVS using the code in zephyr/samples/subsys/nvs for guidance. The basic ability to save/load settings works fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Mar 2020 15:00:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47922/using-zephyr-nvs-with-mcuboot---losing-configuration-on-firmware-update" /><item><title>RE: Using Zephyr NVS with mcuboot - losing configuration on firmware update</title><link>https://devzone.nordicsemi.com/thread/237828?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 15:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b88e2d60-6b0d-4c2a-bdce-1475290daaf2</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;If you specify --sectorerase (ie nrfjprog.exe --program zephyr/merged.hex --sectorerase &amp;amp;&amp;amp; nrfjprog.exe -r) it will only erase as much as it needs to in order to replace your application and allow you to keep your settings.&lt;/p&gt;
&lt;p&gt;I know this is old but I just stumbled across it while searching for something else and thought maybe this will help someone in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Zephyr NVS with mcuboot - losing configuration on firmware update</title><link>https://devzone.nordicsemi.com/thread/189980?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 18:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:311ef401-d4d8-4a03-aabe-a5efb08d60b5</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Just found my issue: the DTS and partition manager break up flash differently.&amp;nbsp; The mcuboot is relying on the PM layout while my NVS code was using the DTS layout.&lt;/p&gt;
&lt;p&gt;I changed my NVS offset from DT_FLASH_AREA_STORAGE_OFFSET to&amp;nbsp;PM_MCUBOOT_STORAGE_ADDRESS and mcuboot is no longer wiping out my config.&amp;nbsp; nrfjprog is still erasing all of flash, but that&amp;#39;s acceptable as long as I&amp;#39;m aware of that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>