<?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>DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79032/dfu-from-external-flash---nrf-connect-sdk---swap</link><description>Hi 
 I would like a clarification when performing DFU from external flash. This is applicable to both nRF52 and nRF91, I guess, as long as nRF Connect SDK and MCUboot is used. In my case, I am more interested in nRF9160 case, when you want to do FOTA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Aug 2021 11:29:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79032/dfu-from-external-flash---nrf-connect-sdk---swap" /><item><title>RE: DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/thread/326983?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14625d25-6e4b-446d-a1bb-41e3dfde61a1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Only you have the permission to convert a case from private to public.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/thread/326982?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:268bc493-9e6f-4c33-9e8a-1c0e22b3c4f2</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;ok, we can close it. Can you make it public?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/thread/326981?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22852a02-e40b-45dd-832b-dc4c4c11669c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Happy to help out.&lt;/p&gt;
[quote user="nLorami"]So basically you confirm that&amp;nbsp;we can go back to the old image, also when on external flash.&amp;nbsp;[/quote]
&lt;p&gt;yes, you can.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/thread/326980?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160383be-0989-4c57-a591-ab66a831f6a7</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Ok, thanks. &lt;br /&gt;So basically you confirm that&amp;nbsp;we can go back to the old image, also when on external flash.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU from external Flash - nRF Connect SDK - swap</title><link>https://devzone.nordicsemi.com/thread/326979?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:030c6c9a-a599-479e-b038-5e835a38e614</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Lorenzo,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The mcuboot documentation will cover most of their questions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-slots"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-slots&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;They effectively swap place, then the new image will be executed from primary slot and once &amp;quot;boot_write_img_confirmed()&amp;quot; is called, it will be verified.&lt;/p&gt;
&lt;p&gt;If this function is not called, then the image will be reverted upon reset (ie. back to old image).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>