<?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 to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104370/how-to-erase-limited-flash-pages-during-dfu-over-bluetoot</link><description>Hello Devzone, 
 I&amp;#39;m using nRF connect SDK version 2.3.0, I&amp;#39;m able to do DFU over BLE successfully. The bootloader is erasing complete flash memory but i want bootloader to erase limited pages. 
 where can i access the bootloader code and how to modify</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 04:42:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104370/how-to-erase-limited-flash-pages-during-dfu-over-bluetoot" /><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/452696?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 04:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc0fb79-64f7-49bd-a57a-01195965e17b</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s working with &amp;quot;confirm only&amp;quot; option.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the difference between &amp;quot;test and coinfirm&amp;quot; and &amp;quot;confirm only&amp;quot;,&amp;nbsp;What&amp;#39;s actually going on internally?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/451550?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 15:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:469233c0-664d-4d4a-b7c6-95722ebf0322</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. Does the new&amp;nbsp;FW image you uploaded also support BLE DFU? &lt;span&gt;Based on the log you shared, it seems that the update wasn&amp;#39;t &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-swapping"&gt;confirmed&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I recommend you try to use our &amp;#39;Device Manager&amp;#39; app and perform a &amp;#39;Confirm Only&amp;#39; update and see if that works.&amp;nbsp;&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/pastedimage1697817444262v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/451475?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 10:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:904d07b8-74de-4af2-a3ec-bfe903824cdb</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;For the first time using J-link i&amp;#39;m dumping the code and for DFU i&amp;#39;m using nrf connect for mobile app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/451462?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 09:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b592824b-3214-44ff-ad69-929a351b5dfb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What app/program are you using to upload the image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/451310?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 12:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb60c6f-1e43-4ec0-93c0-5b0edeb6f917</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Berg, Thanks for your help, It was a flash partition-related issue, but it is now operational.&amp;nbsp; However, I have a DFU issue. While I performing DFU for the same device a second time, the Bootloader reverts to the first image and Disconnecting.&lt;/p&gt;
&lt;p&gt;prints as shown.&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp; *** Booting Zephyr OS build v3.2.99-ncs2 ***&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;I: Starting bootloader&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;I: Primary image: magic=good, swap_type=0x2, copy_done=0x1, image_ok=0x3&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;I: Boot source: none&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;I: Swap type: revert&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt; &amp;quot;&lt;/p&gt;
&lt;p&gt;what could be the reason behind this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449744?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 09:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b7e5e2-c602-427a-92bf-f5ef18990558</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;0x50000 is going to be in that range, so it is not surprising that it is being overwritten. You can use the Memory report action in the VS code extension to&amp;nbsp;find the flash memory layout for your device:&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/memory_overview.html#memory-report-for-partitions"&gt;https://nrfconnect.github.io/vscode-nrf-connect/guides/memory_overview.html#memory-report-for-partitions&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;slot 0 = mcbuboot_primary&lt;/p&gt;
&lt;p&gt;slot 1 = mcuboot_secondary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449738?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 09:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d7b40b-5357-4fde-ab6c-c85962c1f4e2</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;After 0x50000, I&amp;#39;m utilizing it for data storing. I kept 0x0000 to 0x50000 (327kb) for the bootloader and application (my application size is 205kb).&lt;/p&gt;
&lt;p&gt;From where to where MCUBoot slot0/slot1 is utilizing in flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449730?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 08:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82fdd5f4-1416-4597-b7a4-1feccbbdd265</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You need to store the data in a partition that is separate from the MCUBoot slot0/slot1 partition. Otherwise, it will be overwritten when you perform a DFU.&lt;/p&gt;
&lt;p&gt;Where are you currently storing the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449706?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 06:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24876dd-5eec-43ce-bbf4-3abbfc0e4493</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/104370/how-to-erase-limited-flash-pages-during-dfu-over-bluetoot/449026"]The code wouldn&amp;#39;t run after DFU if the entire flash was erased[/quote]
&lt;p&gt;I&amp;#39;m saying that while bootloader replacing new firmware is it erasing complete flash memory.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/104370/how-to-erase-limited-flash-pages-during-dfu-over-bluetoot/449026"]Are you using the storage partition?[/quote]
&lt;p&gt;No, I&amp;#39;m not using stoarge partition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449026?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 13:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a45ea2-5b77-4849-8c93-bb9e316fa9ba</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The code wouldn&amp;#39;t run after DFU if the entire flash was erased. Where are you storing the Device ID in flash? Are you using the storage partition?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/449021?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 13:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe055c8-3ed7-4e87-abe6-03f86a737624</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m stroing devide ID at first and sample information every 10 min,&lt;/p&gt;
&lt;p&gt;During restart of my device i&amp;#39;m reading Device ID and sample info both if I restart manually it is reading both, regarding I have added snippet&amp;nbsp;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696510882881v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After DFU those are getting erased , Here is a snippet&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696511016321v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/448798?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 10:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1f98059-2ae7-4713-8187-821baaa6892e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;can you please show what got erased?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/448797?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 10:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9970dcf3-e563-452a-86dd-529c3a59ff20</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi Berg,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, yeah i tried to read out the previously stored contents but those are all erased.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to erase limited flash pages During DFU over bluetoot</title><link>https://devzone.nordicsemi.com/thread/448796?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 10:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfcfaa25-5aeb-47ba-8eb6-9c5aa8a422d6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The bootloader should never erase the whole flash. Did you read out the flash content before and after DFU to confirm that this happened?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>