<?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>FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100107/fota-with-external-flash</link><description>Hi Team, NCS v2.3.0 I need put the second slot FOTA on an external flash for nrf52840. 
 
 
 
 1. I added CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY =y to prj.conf 2. I added to overlay: What else needs to be added to make it work? 
 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 May 2023 06:54:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100107/fota-with-external-flash" /><item><title>RE: FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/thread/428321?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 06:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a474dc2-f9fa-49a2-a952-5096f318be62</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Serhii,&lt;/p&gt;
&lt;p&gt;I have checked this internally. There is no straightforward way to see that external flash is already in use.&lt;/p&gt;
&lt;p&gt;If it is enough to check the generated build files, then you can look at the generated partition manager and devicetree files. In build/partitions.yml you can look for the partition that should be in external flash and look at the region. For example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_secondary:
  address: 0x0
  device: MX25R64
  end_address: 0xf4000
  region: external_flash
  size: 0xf4000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For devicetree you can look in build/zephyr/zephyr.dts and in build/mcuboot/zephyr/zephyr.dts, where pm-ext-flash should show up under &amp;#39;chosen&amp;#39;, and you can search for the external flash node itself to make sure the status is set to okay, similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        ...
        nordic,pm-ext-flash = &amp;amp;mx25r64;
	};

...

qspi: qspi@40029000 {
    ...
    status = &amp;quot;okay&amp;quot;;
    ...
    mx25r64: mx25r6435f@0 {
        ...
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;On the device itself you can for example check how much data is erased, since the slot is larger for external flash.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/thread/428167?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 12:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e10d0fa-8b87-4c20-955a-95fc15343466</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Marte,&lt;/span&gt;&lt;br /&gt;the issue seems to be resolved, but still, how to make sure, check?&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Serhii&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/thread/427704?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 08:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6561c7da-8e38-4bed-98de-ceb56e52305f</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Marte,&lt;/span&gt;&lt;br /&gt;How can I make sure that the external flash is already involved in the update process?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Serhii&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/thread/427536?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 13:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0762d735-7f3b-4aa7-8809-4473dc7ab06f</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;Hi Marte,&lt;br /&gt;Thanks, I&amp;#39;ve already added what you said.&lt;br /&gt;How can I understand that an external flash is already in use?&lt;br /&gt;&lt;br /&gt;00&amp;gt; Connected to SMP service: err 0 id 1&lt;br /&gt;00&amp;gt; [00:01:20.553,955] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none&lt;br /&gt;00&amp;gt; [00:01:20.555,236] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none&lt;br /&gt;00&amp;gt; [00:01:20.819,061] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none&lt;br /&gt;00&amp;gt; [00:01:20.819,519] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none&lt;br /&gt;00&amp;gt; [00:01:23.269,561] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x6c000 bytes of image slot&lt;br /&gt;00&amp;gt; [00:01:23.319,854] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x1000 bytes of image slot trailer&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Serhii&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with external Flash.</title><link>https://devzone.nordicsemi.com/thread/427498?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 11:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32271133-01ef-4f56-adc8-1ee7f8fd41b3</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to add the overlay with&amp;nbsp;pm-ext-flash to both the application and MCUboot. If you have added this to an overlay file called something like &amp;lt;board_name&amp;gt;.overlay, then the structure should look like this:&lt;/p&gt;
&lt;pre&gt;project_dir&lt;br /&gt;|__ src&lt;br /&gt;|__ CMakeLists.txt&lt;br /&gt;|__ prj.conf&lt;br /&gt;|__ boards&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;|__&amp;lt;board_name&amp;gt;.overlay&lt;br /&gt;|__ child_image&lt;br /&gt;&amp;nbsp; &amp;nbsp; |__mcuboot&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|__ boards&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|__&amp;nbsp;&amp;lt;board_name&amp;gt;.overlay&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>