<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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: DFU over BLE + External Flash + boot the image from external flash</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88509/nrf5340-dfu-over-ble-external-flash-boot-the-image-from-external-flash</link><description>Hello, 
 Are there any steps or documentation specific to nRF5340 to perform DFU over BLE and store the image into external flash and on the next boot it should get executed from External flash only? Is there any ready example which does the same? 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 02 Jun 2022 13:01:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88509/nrf5340-dfu-over-ble-external-flash-boot-the-image-from-external-flash" /><item><title>RE: nRF5340: DFU over BLE + External Flash + boot the image from external flash</title><link>https://test-devzone.nordicsemi.com/thread/370704?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 13:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2113e4de-1480-40d9-9f4c-282488c20f44</guid><dc:creator>user114903</dc:creator><description>&lt;p&gt;Thank you, Jorgen for providing these additional details. I will update the SDK and will get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: DFU over BLE + External Flash + boot the image from external flash</title><link>https://test-devzone.nordicsemi.com/thread/370701?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 12:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9403428-9c03-4439-8c2e-a7ef07333b9c</guid><dc:creator>user14926</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;MCUBoot have support for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/mcuboot/design.html#equal-slots-direct-xip"&gt;direct-xip image slots&lt;/a&gt;. The image needs to be built for the memory location where it will be execute from, &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/83334/mcuboot---execution-from-external-storage/346133#346133"&gt;ARM Cortex M CPUs does not support&amp;nbsp;position independent code&lt;/a&gt;.&amp;nbsp;By default, the bootloader will load the image from second slot into primary slot before execution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In nRF Connect SDK v2.0.0 released today, there is added support for dual slot execute in place (XIP) in the build system, see the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/releases/release-notes-2.0.0.html#mcuboot"&gt;MCUboot&lt;/a&gt;&amp;nbsp;section in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/releases/release-notes-2.0.0.html"&gt;nRF Connect SDK v2.0.0 Release Notes&lt;/a&gt;&amp;nbsp;for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Added support for the Dual-slot execute-in-place (XIP) feature in the nRF Connect SDK build system. See the&lt;span&gt; &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.0.0/tests/modules/mcuboot/direct_xip"&gt;ncs/nrf/tests/modules/mcuboot/direct_xip&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;test project for an example of how to leverage this feature in your application.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Note that this test sample will place both slots in internal flash. You need to combine it with XIP over QSPI to be able to execute code from external flash. See for instance &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/85955/nrf5340-evaluating-power-consumption-of-xip-functions/359240#359240"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>