<?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>NRF53 Gracefully Revert Multi-image DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112795/nrf53-gracefully-revert-multi-image-dfu</link><description>Hello, 
 I want to add multi-image dfu over BLE to my NRF53. A simultaneous update seems to be the only option for this. Unfortunately, it seems we lose the ability to revert any images by default. 
 I see CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2024 13:35:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112795/nrf53-gracefully-revert-multi-image-dfu" /><item><title>RE: NRF53 Gracefully Revert Multi-image DFU</title><link>https://devzone.nordicsemi.com/thread/494829?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 13:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a69e6d8c-dd49-46ae-b55d-0899505e9d19</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delay in responding. It&amp;#39;s summer vacation here in Norway, and only a few of us are working, which is causing the delay.&lt;/p&gt;
&lt;p&gt;The official sample showcasing the nRF5340 DFU is the one mentioned in the Developer Academy course.&lt;/p&gt;
[quote user="IanS"]Perhaps&amp;nbsp;the dependency feature of imgtool can be used to revert cpuapp/cpunet? Thoughts?[/quote]
&lt;p&gt;I think utilizing the dependency of the imgtool is a valid approach. You can specify the required version of the cpunet firmware when signing the cpuapp firmware image, and vice versa if needed. This way, you can ensure that both cores are running compatible versions of their respective firmware. The MCUboot bootloader will check these dependencies during the DFU process. If the cpunet firmware version does not match the specified version, the update for the cpuapp firmware will not proceed, ensuring compatibility. Something like below:&lt;br /&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;--dependencies &lt;span&gt;&amp;quot;cpunet:1.0.0&amp;quot;&lt;/span&gt; cpuapp_firmware.bin signed_cpuapp_firmware.bin&lt;/span&gt;&lt;/p&gt;
[quote user="IanS"]Also, I came across a similar ticket but no answer yet:[/quote]
&lt;p&gt;I went through this ticket, and it belongs to me. The customer has not responded to my initial query, which caused the ticket to vanish from my list. That&amp;#39;s why it is still in an unanswered state.&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: NRF53 Gracefully Revert Multi-image DFU</title><link>https://devzone.nordicsemi.com/thread/493248?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 21:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b63e14f-6272-4bfa-8874-112825cf2ba1</guid><dc:creator>Ian</dc:creator><description>[quote userid="115767" url="~/f/nordic-q-a/112795/nrf53-gracefully-revert-multi-image-dfu/492776"]However, if not handled correctly, especially if the cpuapp doesn&amp;#39;t properly coordinate the update, there is a risk of bricking the cpunet core.[/quote]
&lt;p&gt;Do you have an official/unofficial example of how this can be handled correctly?&lt;/p&gt;
&lt;p&gt;Also, I came across a similar ticket but no answer yet:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110612/how-to-add-dependency-to-multiple-images-for-nrf5340-multi-image-dfu"&gt;How to add Dependency to multiple images for nRF5340 multi image DFU&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Perhaps&amp;nbsp;the dependency feature of imgtool can be used to revert cpuapp/cpunet? Thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF53 Gracefully Revert Multi-image DFU</title><link>https://devzone.nordicsemi.com/thread/492776?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 15:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de9574d-aef8-4291-9547-bced36b33328</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Is there any way to gracefully revert both&amp;nbsp;cpuapp and cpunet images if one of them fails to run? If not, are there plans to add this?[/quote]
&lt;p&gt;Without using the serial recovery option, it’s difficult to gracefully revert both the cpuapp and cpunet images. However, I would like to point out that there is an image swap mechanism with MCUboot that allows the device to revert to a known-good state if an update fails. For more details, see the section on &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/design.html#image_swapping"&gt;image swapping&lt;/a&gt;,&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/tfm/design_docs/booting/tfm_secure_boot.html#swapping_operation"&gt; swapping operations&lt;/a&gt;, and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/design.html#boot_swap_types"&gt;boot swap types&lt;/a&gt;.&lt;/p&gt;
[quote user=""]What is the use case for&amp;nbsp;&lt;span&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;if it bricks the cpunet core? Is it just for cpuapp image dfus?&lt;/span&gt;[/quote]
&lt;p&gt;The `CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY` setting lets you manage the DFU process without being limited to upgrade-only actions. This means you can do other DFU tasks like image swaps or reverts. However, if not handled correctly, especially if the cpuapp doesn&amp;#39;t properly coordinate the update, there is a risk of bricking the cpunet core.&lt;/p&gt;
[quote user=""]Does a simultaneous update require both images to be updated, or can&amp;nbsp;either image be updated alone?[/quote]
&lt;p&gt;You are not strictly required to update both images simultaneously. You can perform a non-simultaneous &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/dfu-for-the-nrf5340/"&gt;update for the nRF5340&lt;/a&gt;, meaning you can update either the cpuapp or the cpunet image independently, as long as the new image is compatible with the other existing image.&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></channel></rss>