<?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>The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106301/the-nvs-in-the-ncs-erases-the-contents-in-dfu-is-this-a-specification-or-bug</link><description>As the title suggests, is this a specification? or bug? otherwise something missing in the settings? 
 NVS values did not vanished while nRF5 SDK used. 
 before DFU 
 
 after DFU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2023 15:02:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106301/the-nvs-in-the-ncs-erases-the-contents-in-dfu-is-this-a-specification-or-bug" /><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/461469?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 15:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da92ddf-a4a2-4a8f-8e57-1595327e1cd5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are using the nRF Connect app, there is an equivalent settings in&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;em&gt;Settings/Mcu Manager options/Erase application settings&lt;/em&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you please check if that is the cause?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;If it doesn&amp;#39;t help. Could you try to set &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/kconfig/index.html#config_img_erase_progressively" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_IMG_ERASE_PROGRESSIVELY" rel="noopener noreferrer" target="_blank"&gt;CONFIG_IMG_ERASE_PROGRESSIVELY&lt;/a&gt; to see if it differs from this?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I&lt;/em&gt;&lt;em&gt; will start the holiday tomorrow and will not reply until January. 09.2024. If this case is urgent to support. Please create a new support case.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Merry Christmas &amp;amp; Happy New Year.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/461349?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 00:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fa6a19-37c6-4ea1-b102-35218c3d34aa</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using the nRF Connect for mobile app. is it common to use the nRF Connect Device Manager app?&lt;/p&gt;
&lt;p&gt;By the way, is there a setting equivalent to that function in nRF Connect for mobile?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703118155078v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/461297?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 14:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee1dccc9-3218-4865-a62e-2d36369ae8ff</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider ed bcf bcg bch bci bcj bck bcl bcm bcn bco bcp bcq bcr bcs bct bcu bcv bcw bcx bcy bcz bda bdb bdc bdd bde bdf bdg bdh bdi bdj bdk bdl bdm" dir="ltr"&gt;If you&amp;#39;re doing DFU from nRF Connect Device Manager app, there&amp;#39;s a setting &amp;quot;erase application storage&amp;quot;, enabled by default.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703080977827v1.png" alt=" " /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider ed bcf bcg bch bci bcj bck bcl bcm bcn bco bcp bcq bcr bcs bct bcu bcv bcw bcx bcy bcz bda bdb bdc bdd bde bdf bdg bdh bdi bdj bdk bdl bdm" dir="ltr"&gt;Could you check that?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/460946?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 05:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de3039d-fc1e-4c3c-ac76-35a477fc39dd</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;div&gt;
&lt;div&gt;[quote userid="77782" url="~/f/nordic-q-a/106301/the-nvs-in-the-ncs-erases-the-contents-in-dfu-is-this-a-specification-or-bug/460902"]Where do you store the values? Is it in NVS?[/quote]&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m sure it should be...I am using nvs_write API.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;gt;nvs_write(&amp;amp;fs, &lt;/span&gt;&lt;span&gt;NVS_ID&lt;/span&gt;&lt;span&gt;, &amp;amp;xxx, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(xxx));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/460902?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 16:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a82be48a-151e-42a5-b8ec-f1328ee8bdfc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Where do you store the values? Is it in NVS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/460687?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 01:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf03a93-f138-4a87-8717-d0079fe6bb34</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I actually verified this. And&amp;nbsp;I also confirmed that the following message appears during the build.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
-- Configuring done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But...&lt;/p&gt;
&lt;p&gt;Stored values in flash memory are still lost by DFU. Am I missing some setting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/459268?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 01:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:117b5515-e3ef-4098-afc5-c769b52aed5c</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your advice.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Yoshihiro Goto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/458999?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8edca0b7-ceee-484c-9b95-709129d4a886</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you have multi-image build, it will automatically enable the Partition Manager. In your case, you are using DFU. So it should already enable MCUBoot, and then the&amp;nbsp;&lt;span&gt;Partition Manager would be enabled automatically.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Just build the project normally and then copy the partitions.yml from the build directory into the app root directory and name it pm_static.yml.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/458867?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 07:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bdebc75-6f91-4bac-a3ea-ffd84ac4f81e</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the answer. I understand that I am missing a setting.&amp;nbsp;I also read the link.&lt;/p&gt;
&lt;p&gt;But...what exactly do I&amp;nbsp;should&amp;nbsp;to do?&lt;br /&gt;I turned on CONFIG_PARTITION_MANAGER, but that causes a build error. (What does read-only mean?)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v2.4.2/nrf/subsys/partition_manager/flash_map_partition_manager.c:12:10: fatal error: pm_config.h: No such file or directory
12 | #include &amp;lt;pm_config.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can see that there is a partition.yml file in the existing build folder, does that mean I should move it to the root folder of the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The NVS in the nCS erases the contents in DFU, is this a specification? or bug?</title><link>https://devzone.nordicsemi.com/thread/458780?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 15:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ff6dd62-bdec-4633-a02e-b990f7207818</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please use the same&amp;nbsp;pm_static.yml for FOTA. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/config_and_build/bootloaders_and_dfu/bootloader.html"&gt;Static partition requirement for DFU&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>