<?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>USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120291/usb-dfu-using-auterm-unable-to-switch-between-images-in-two-slots</link><description>Hello, I am test DFU USB function with my Thingy53. So far, I have been able to add DFU USB support from my application but not from the MCUboot. I am using the recommended AuTerm (v0.35a) to upload and read images. I can successfully upload the &amp;quot;signed_by_mcuboot_and_b0_ipc_radio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Apr 2025 19:28:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120291/usb-dfu-using-auterm-unable-to-switch-between-images-in-two-slots" /><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/531085?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 19:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0799e51a-d450-482f-bad6-15990eda7661</guid><dc:creator>Shuhao Dong</dc:creator><description>&lt;p&gt;Thank you. I have decided to use dfu-util command line to with DFU USB class rather than mcumgr.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/530621?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2025 12:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7bc19d4-3500-42c6-868e-34eb104e9df1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Shuhao Dong"]But if I do want to add that feature in the future, I am programming using an external debugger on nrf5340dk. COuld you please suggest any solution to that? [/quote]
&lt;p&gt;If you want to program Serial Recovery later, see &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/530498?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 16:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c183463-a8a7-4282-b2af-8c06dcc5e431</guid><dc:creator>Shuhao Dong</dc:creator><description>&lt;p&gt;Hi Sigurd, I abandoned the AuTerm method and changed to dfu-util command line tool. Sorry to make it unclear before, but I do not want to use USB serial recovery. I only want to use USB DFU from application. Right now, I can confirm I could be able to update application core using dfu-util with zephyr.signed.bin. And after enabling&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_USB_DFU_PERMANENT_DOWNLOAD=y
CONFIG_USB_DFU_REBOOT=y&lt;/pre&gt;, it seems like the device will automatically reboot and swap and confirm the new image. I have not yet tried to upgrade both cores using dfu-util.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the second question, since I am not using USB serial recovery, the size of mcuboot partition is large enough. But if I do want to add that feature in the future, I am programming using an external debugger on nrf5340dk. COuld you please suggest any solution to that? Many thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/529964?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 11:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f6fecb-45df-4f5a-8408-c45927f1401b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Aha, I missed that you were doing Serial Recovery.&lt;/p&gt;
&lt;p&gt;I suggest that you start by trying to only DFU to application core. Does that work?&lt;/p&gt;
[quote user="Shuhao Dong"]Another question is, if I want to enable serial recovery over USB, the size of my MCUboot parition is restricted by a static partition yaml file comes with zephyr, how can I increase the size of MCUboot partition size? I have tried to use the partition output file from my nrf5340dk&amp;#39;s build, is this a valid approach? Thank you![/quote]
&lt;p&gt;It depends, do you program the Thingy with an external debugger or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/529740?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 10:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ec171ec-c557-48d9-9aa3-374953313d46</guid><dc:creator>Shuhao Dong</dc:creator><description>&lt;p&gt;Thank you Sigurd. I have configured a secondary slot in my sysbuild.conf using: SB_CONFIG_MCUBOOT_MODE_SINGLE_APP=n and in the mcuboot.conf using:&amp;nbsp;&lt;span&gt;CONFIG_SINGLE_APPLICATION_SLOT&lt;/span&gt;&lt;span&gt;=n. So do I have to use external flash for MCUboot?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another question is, if I want to enable serial recovery over USB, the size of my MCUboot parition is restricted by a static partition yaml file comes with zephyr, how can I increase the size of MCUboot partition size? I have tried to use the partition output file from my nrf5340dk&amp;#39;s build, is this a valid approach? Thank you!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU using AuTerm Unable to switch between images in two slots</title><link>https://devzone.nordicsemi.com/thread/529729?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 09:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e357c6a-2469-4530-a5af-20c14fb22a1f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] &amp;quot;signed_by_mcuboot_and_b0_ipc_radio.bin&amp;quot; file with the Test option[/quote]
&lt;p&gt;Netcore DFU does not support Reverting. Use &amp;quot;Confirm&amp;quot; instead of &amp;quot;Test&amp;quot;.&lt;/p&gt;
[quote user=""]&amp;nbsp;But from the terminal output, I can see an error and two inf log outputs as shown:&amp;nbsp;[/quote]
&lt;p&gt;This is typically due to not found secondary slot in MCUboot, usually external flash.&lt;/p&gt;
&lt;p&gt;Are your external flash set up properly for MCUboot?&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-5-fota-over-bluetooth-low-energy/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-5-fota-over-bluetooth-low-energy/&lt;/a&gt; for a guide (At the bottom is a section for the nRF5340.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>