<?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>nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125187/nrf5340-simultaneous-multi-image-dfu-serial-recovery</link><description>Hi Is it possible to configure project to use simultaneous multi image DFU and serial recovery over USB? I would like to be able to update both cores using dfu_multi_image_XXX and in case something goes wrong, being able to recover both cores (app + net</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Oct 2025 14:36:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125187/nrf5340-simultaneous-multi-image-dfu-serial-recovery" /><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552786?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2025 14:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10872709-c2bf-4933-8933-a424410dffa5</guid><dc:creator>Przemek Ostrowski</dc:creator><description>&lt;p&gt;It is all clear now. Thank you so much :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552785?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2025 14:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32b6cd1-29f3-424f-a4b3-eaa08a47c6e8</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Przemek Ostrowski"]I do not understand why mcumgr command works with -n 3 where&amp;nbsp;&lt;span&gt;dfu_multi_image use 1.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;I think you mean this code&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/dfu/dfu_multi_image/src/main.c#L84"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/dfu/dfu_multi_image/src/main.c#L84&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Image ID&amp;nbsp;is&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;0&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;for the application core and&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;1&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;for the network core. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/dfu/dfu_multi_image/README.html"&gt;DFU Multi-image&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-n&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;is used for image selection.&amp;nbsp;&lt;/span&gt;Here you can find the slot numbers for Serial Recovery:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/kconfig.serial_recovery#l63-l67" href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig.serial_recovery#L63-L67" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/Kconfig.serial_recovery#L63-L67&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you see from this second list, 3 is image-2, which should be the network core image I think. Also see&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_serial_recovery.html#managing_direct_image_upload"&gt;Managing direct image upload&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/dfu/dfu_multi_image/src/main.c#L84"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552630?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2025 12:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e912212-a4b5-4ea6-813e-4a9cda231b07</guid><dc:creator>Przemek Ostrowski</dc:creator><description>&lt;p&gt;There is no errors, it seams to be working with one exception. I need to be sure it works by design not by accident. So could you please confirm it is meant to work together?&lt;br /&gt;&lt;br /&gt;I can update app and radio cores from application code:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dfu_multi_image_init&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;multiimageDfuBuffer&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;], &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;multiimageDfuBuffer&lt;/span&gt;&lt;span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;strong&gt;writer.image_id = 0;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dfu_multi_image_register_writer&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;writer&lt;/span&gt;&lt;span&gt;); &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;writer.image_id&lt;/span&gt;&lt;span style="color:#ff0000;"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;= 1;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dfu_multi_image_register_writer&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;writer&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;And from MCUBoot:&lt;br /&gt;mcumgr -c acm1 image upload&amp;nbsp; -e &lt;strong&gt;-n 0&lt;/strong&gt; ./app/zephyr/zephyr.signed.encrypted.bin&lt;br /&gt;mcumgr -c acm1 image upload ./signed_by_mcuboot_and_b0_ipc_radio.bin -e &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;-n 3&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I do not understand why mcumgr command works with -n 3 where&amp;nbsp;&lt;span&gt;dfu_multi_image use 1.&lt;br /&gt;&lt;/span&gt;Please confirm it is by design not a bug that will be fixed in the next 6 months and I will be not able recover the firmware in the future.&lt;br /&gt;Thank you.&lt;br /&gt;Przemek&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552552?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 19:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34c5e0c3-1c92-4b13-96a9-b8248f309de1</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Przemek Ostrowski"]So it is not clear to me if these&amp;nbsp;configurations are excluding each other?[/quote]
&lt;p&gt;Do you see any conflicts? If so, please provide the log.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552500?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 13:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15c01040-40dd-4e84-8f4c-72932d513cba</guid><dc:creator>Przemek Ostrowski</dc:creator><description>&lt;p&gt;I am asking&amp;nbsp;my&amp;nbsp;question because&amp;nbsp;of&amp;nbsp;this link:&lt;br /&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/nrf53/serial_recovery.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/nrf53/serial_recovery.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;In addition to the recovery of the application core image, also the networking core image can be recovered. When you build MCUboot for the nRF5340 DK or the Thingy:53, you can use this feature &lt;strong&gt;with one of the following options&lt;/strong&gt;:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference internal" href="https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/nrf53/simultaneous_multi_image_dfu_nrf5340.html#ug-nrf5340-multi-image-dfu" data-bundleid="ncs-3.0.2" data-navpath="nrf/app_dev/device_guides/nrf53/simultaneous_multi_image_dfu_nrf5340.html"&gt;&lt;span class="std std-ref"&gt;Simultaneous multi-image DFU with nRF5340 DK&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Serial recovery for the network core in the one image pair mode, where sysbuild Kconfig option&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;SB_CONFIG_MCUBOOT_UPDATEABLE_IMAGES&lt;/span&gt;&lt;/code&gt;&amp;nbsp;is set to&amp;nbsp;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;==&lt;/span&gt;&amp;nbsp;&lt;span class="pre"&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To enable the serial recovery of the network core while the multi-image update is not enabled in MCUboot, set the following Kconfig options in the MCUboot image:&amp;quot;&lt;br /&gt;&lt;br /&gt;So it is not clear to me if these&amp;nbsp;configurations are excluding each other?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneous multi image dfu + serial recovery</title><link>https://devzone.nordicsemi.com/thread/552358?ContentTypeID=1</link><pubDate>Fri, 24 Oct 2025 13:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:783d6b3f-1e81-46e4-bf1e-242d476adc04</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can refer to this Devacademy course&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/simultaneous-updates-for-both-cores-of-the-nrf5340/"&gt;https://academy.nordicsemi.com/simultaneous-updates-for-both-cores-of-the-nrf5340/&lt;/a&gt;&amp;nbsp;and this course&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-4-dfu-over-usb/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-4-dfu-over-usb/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>