<?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>DFU of App Data section</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25585/dfu-of-app-data-section</link><description>SDK14.0.0
nRF52832
s132 
 I would like to DFU the contents of the App Data section. In particular, I would like to erase the contents for a &amp;quot;factory reset&amp;quot; command. 
 I&amp;#39;ve tried creating a separate DFU package that just contains 0xff in addresses</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 14:23:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25585/dfu-of-app-data-section" /><item><title>RE: DFU of App Data section</title><link>https://devzone.nordicsemi.com/thread/100860?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 14:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b4e3cd-fd53-42e2-be43-8a7beedb2d98</guid><dc:creator>Daniel</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;So you meant you want a special DFU update that will do &amp;quot;factory reset&amp;quot; when normal DFU update will keep the DFU_APP_DATA_RESERVED ?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Correct.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I would suggest to either modify the bootloader to erase the region when you receive the &amp;quot;factory reset&amp;quot; command, or if you don&amp;#39;t want to modify the bootloader, you can have some code in your application that can erase the region before you switch to bootloader (assume you have buttonless DFU) .&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks. I&amp;#39;d prefer that the functionality wasn&amp;#39;t in the application (in case the app data contents cause the application to behave unexpectedly).
That leaves updating the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU of App Data section</title><link>https://devzone.nordicsemi.com/thread/100859?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 15:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8881c5b5-d102-43b2-970e-c40e35130ac1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;So you meant you want a special DFU update that will do &amp;quot;factory reset&amp;quot; when normal DFU update will keep the DFU_APP_DATA_RESERVED ?&lt;/p&gt;
&lt;p&gt;I would suggest to either modify the bootloader to erase the region when you receive the &amp;quot;factory reset&amp;quot; command, or if you don&amp;#39;t want to modify the bootloader, you can have some code in your application that can erase the region before you switch to bootloader  (assume you have buttonless DFU) .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU of App Data section</title><link>https://devzone.nordicsemi.com/thread/100858?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 18:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa447403-fb62-4924-acc8-0c53f920fdd0</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Understood. For my application, I&amp;#39;ve increased the number of pages to 4 and set DFU_APP_DATA_RESERVED to 0x4000 to match (nrf52832, virtual page size is 1024).&lt;/p&gt;
&lt;p&gt;The issue is that I normally do &lt;em&gt;not&lt;/em&gt; want to erase this region during a DFU. It&amp;#39;s only during special situations, such as a factory reset, that the region should be erased.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU of App Data section</title><link>https://devzone.nordicsemi.com/thread/100857?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 13:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef741fa7-afba-4bff-836d-de03e449e8ee</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you have a look &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/lib_bootloader_dfu_banks.html?cp=4_0_0_3_5_1_2_0_1#lib_bootloader_dfu_dual_banks_app"&gt;here&lt;/a&gt;, you can find that by default the application data reserved is 3 pages. If you set DFU_APP_DATA_RESERVED to 0, the application data should be erase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU of App Data section</title><link>https://devzone.nordicsemi.com/thread/100856?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 20:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a32a414-651d-4a53-89b4-33259721163c</guid><dc:creator>Daniel</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;One way I think will work is to increase the size of the application so that it includes addresses up to 0x78000.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This method won&amp;#39;t work either. The bootloader will refuse to overwrite the app data section. (And I don&amp;#39;t want it erased during a normal DFU, so I have set DFU_APP_DATA_RESERVED appropriately).&lt;/p&gt;
&lt;p&gt;-- Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>