<?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>Data is lost during the DFU upgrade. How to check which flash areas are erased and operated during the OTA upgrade?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109374/data-is-lost-during-the-dfu-upgrade-how-to-check-which-flash-areas-are-erased-and-operated-during-the-ota-upgrade</link><description>1. The operation pairing record is stored in the OTA. The Flash pairing record is stored at 0x7d000-0x80000. Where can I see the erased area in the code?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Mar 2024 09:24:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109374/data-is-lost-during-the-dfu-upgrade-how-to-check-which-flash-areas-are-erased-and-operated-during-the-ota-upgrade" /><item><title>RE: Data is lost during the DFU upgrade. How to check which flash areas are erased and operated during the OTA upgrade?</title><link>https://devzone.nordicsemi.com/thread/474233?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 09:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da0ff480-9c6e-446b-ab50-227d4430115a</guid><dc:creator>huangyifeng</dc:creator><description>&lt;p&gt;I saw the link you sent, and I&amp;#39;ve seen these images. But from the source code, which code clearly defines these?&lt;br /&gt;&lt;a href="https://blog.csdn.net/YYGY731793898/article/details/108981974"&gt;blog.csdn.net/.../108981974&lt;/a&gt;&lt;br /&gt;This link is a parsing of the actual source code, but I still don&amp;#39;t see what parts of falsh it erases.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710753692566v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;This configuration is also correct in my code.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710753816130v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data is lost during the DFU upgrade. How to check which flash areas are erased and operated during the OTA upgrade?</title><link>https://devzone.nordicsemi.com/thread/474229?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 09:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15f3bfde-a098-48b0-a477-3b08367e0a42</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The memory layout can be found here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=9_1_3_5_0_7#lib_bootloader_memory"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=9_1_3_5_0_7#lib_bootloader_memory&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To preserve application data during a DFU, configure a value for&amp;nbsp;DFU_APP_DATA_RESERVED&amp;nbsp;in&amp;nbsp;&lt;code&gt;nrf_dfu_types.h&lt;/code&gt;. The default value is 3. See this link:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html?cp=9_1_3_5_1_2_2#lib_bootloader_dfu_appdata"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html?cp=9_1_3_5_1_2_2#lib_bootloader_dfu_appdata&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>