<?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 do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104513/how-to-do-dfu-over-bluetooth-in-nrf-connect-sdk-2-3-0</link><description>Hello Devzone, 
 I&amp;#39;m using the nrf connect SDK 2.3.0 version, and I need to perform DFU through Bluetooth, but I couldn&amp;#39;t locate a procedure or any useful documentation on online. Would someone kindly point me in the correct direction? 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 05:46:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104513/how-to-do-dfu-over-bluetooth-in-nrf-connect-sdk-2-3-0" /><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/452703?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 05:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe78d21-9910-4d0d-bdd6-b294665d017f</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Read more about&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#boot-swap-types"&gt;boot swap types&lt;/a&gt;. It should work with &amp;quot;test and confirm&amp;quot;. Try to provide the swap type from the application itself instead of from the mobile app. See the MCUboot APIs. Include &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/dfu.html#c.boot_write_img_confirmed"&gt;boot_write_image_confirmed&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/dfu.html#c.boot_is_img_confirmed"&gt;boot_is_image_confimed&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/452699?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 05:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb904f50-7a60-42e8-b1bb-09fa105e432b</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s working with &amp;quot;confirm only&amp;quot; option in nrf connect mobile app.&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 do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/452125?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 03:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc60149-7e28-4998-84ff-aba925b34be2</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;A bit strange, but is this the whole log? MCUboot is reverting back to the old image here; this can happen if something with the newly installed image is wrong or invalid. Is the same happening with the sample I attached here? Usullay MCUboot will test and then confirm the image, but I couldn&amp;#39;t find any logs mentioning this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/451435?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 07:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ed0ff83-a9ca-4da7-adc9-60107db0d9c8</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hello, I tried that one as well, but it didn&amp;#39;t work. To be sure you understand the problem, the first time I performed DFU, everything went smoothly. However, the next time I attempted DFU for the same device, the bootloader&amp;nbsp;printing this&lt;/p&gt;
[quote userid="126494" url="~/f/nordic-q-a/104513/how-to-do-dfu-over-bluetooth-in-nrf-connect-sdk-2-3-0/451307"]&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;[/quote]
&lt;p&gt;and booted the first image (i.e., the image from before the first DFU or the code that had been flashed using J-link),&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried the confirm only option in the mobile app, but it didn&amp;#39;t work out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/451417?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 05:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff43d63-fead-43b6-964e-2c4483c36889</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From the very short log you shared, swap type is getting reverted. While doing the OTA DFU, which swap type are you mentioning from the mobile app? You need to mention swap type &amp;quot;test and confirm.&amp;quot; Can you also try giving the swap type confirm only from the app and see whether this is working for you or not?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/451307?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 12:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:672c1b87-7b99-4d1a-8c66-c026ca819ee8</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi Menon 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;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/449808?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 12:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7c7f7e-a4ec-4735-9d77-1fce13bf2882</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Theja"]When I dump the code(without DFU), it works fine, but after DFU, the read values are incorrect, so I&amp;#39;m wondering if the bootloader is writing the application to that location after DFU and I&amp;#39;m also unable to perform DFU in succession one after the other.[/quote]
&lt;p&gt;I am not sure whether I understand the issue correctly. What do you mean by reading values here? I recommend you check the partition manager report to get an idea of how the flash is divided. I am attaching a simple sample, which I tested for nrf52833DK, and the partition manager report is as follows:&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/pastedimage1697025977569v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is there any log or error message from the device when you try to do DFU repeatedly? I recommend testing the attached sample to see if the same is happening or not.&lt;/p&gt;
&lt;p&gt;Please expect some delay after this response, as I will be away for the next two days&lt;/p&gt;
&lt;p&gt;.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/OTA_5F00_dfu_5F00_nrf52833dk.zip"&gt;devzone.nordicsemi.com/.../OTA_5F00_dfu_5F00_nrf52833dk.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/449540?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 11:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59395c15-7b7d-446e-b1db-3562d8339d26</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi Menon,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I&amp;#39;m able to do DFU over bluetooth.&lt;/p&gt;
&lt;p&gt;However, I have a problem. I&amp;#39;m using a nrf52833 SOC, which has 512 KB of flash memory, and I used 0x00 to 0x50000 of that memory for the bootloader and the application after that I&amp;#39;m using for data storage.&lt;/p&gt;
&lt;p&gt;When I dump the code(without DFU), it works fine, but after DFU, the read values are incorrect, so I&amp;#39;m wondering if the bootloader is writing the application to that location after DFU and I&amp;#39;m also unable to perform DFU in succession one after the other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/449489?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 09:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb6b3af-f9cb-4f28-bcaf-f5e597f63ca5</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The documents pointed out by @Yohan philippe look&amp;nbsp;good. Please let me know if you are still struggling to find something.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/449480?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 08:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a39782c-861b-49df-8d23-a296b274c5ba</guid><dc:creator>yohan</dc:creator><description>&lt;p&gt;And a documented sample: &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;devzone.nordicsemi.com/.../ncs-dfu&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do DFU over bluetooth in nRF connect SDK 2.3.0</title><link>https://devzone.nordicsemi.com/thread/449479?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 08:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:349ea9ed-7084-4f6f-8d3a-77e6fb750c39</guid><dc:creator>yohan</dc:creator><description>&lt;p&gt;Hi ! Not sure if it is what you are searching for, but there is common configuration files used to enable BLE OTA in the sample directory:&lt;/p&gt;
&lt;p&gt;nrf/samples/common/mcumgr_bt_ota_dfu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>