<?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 update with external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121469/fota-update-with-external-flash</link><description>I am trying to set up FOTA support with external flash for mcuboot secondary partition. I have gone through several tickets on the subject, but haven&amp;#39;t been able to solve the issue. The ncs version I am using is 2.9.1. The problem seems to be (like in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 May 2025 09:14:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121469/fota-update-with-external-flash" /><item><title>RE: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535730?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 09:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9843fb2a-55e7-46c6-a6b8-68dcf85b2142</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535720?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 08:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df96260b-a388-42f8-ae71-911b89b4d6c4</guid><dc:creator>veli-pekka</dc:creator><description>&lt;p&gt;Ok, thanks! I was thinking that ID 2&amp;nbsp;could&amp;nbsp;point to scratch are, which seems not to be defined when&amp;nbsp;&lt;br /&gt;&lt;br /&gt;SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=y&lt;br /&gt;&lt;br /&gt;is set.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535710?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 08:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0277d2-adfe-4357-8fce-d188b17ab578</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Great! Thank you for updating me&lt;/p&gt;
[quote user="veli-pekka"]The application updates fine. I&amp;#39;m not sure about the network core, at least it is been uploaded. There is one error in the logs:[/quote]
&lt;p&gt;This specific error for the netcore image is nothing to worry about, as long as the image is uploaded and updated. The reason for this error is specific to the netcore of the nRF5340,&amp;nbsp;&lt;span&gt;since what it&amp;#39;s doing here is attempting to read RAM-emulated flash, i.e where the temporary storage for netcore firmware, something which mcumgr can&amp;#39;t do.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the short explanation, and the longer explanation will require you to spend some time diving into the mcuboot source code specifically for the bootloader used in combination with the nRF5340 in addition to the bootloader documentation&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/index.html&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know if this makes sense!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535702?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 07:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e66a52a-afd5-4a76-94d5-262749ea60bb</guid><dc:creator>veli-pekka</dc:creator><description>&lt;p&gt;Thanks, I got the issues sorted out. I now have pretty much this solution:&lt;br /&gt;&lt;a id="" 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;&lt;br /&gt;&lt;br /&gt;The application updates fine. I&amp;#39;m not sure about the network core, at least it is been uploaded. There is one error in the logs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;00:02:09.561,065] &amp;lt;err&amp;gt; mcumgr_img_grp: Failed to open flash area ID 2: -2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Should I be concerned about it?&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: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535323?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 12:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb2722d5-35a6-45b3-81c4-2c7d8ac445bd</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There are a couple of items here that could be the root cause, but for a starter I think I might want to recommend you to have a look at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/&lt;/a&gt;&amp;nbsp;with focus on&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/dfu-for-the-nrf5340/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/dfu-for-the-nrf5340/&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-3-dfu-with-external-flash/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-3-dfu-with-external-flash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-5-fota-over-bluetooth-low-energy/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/topic/exercise-5-fota-over-bluetooth-low-energy/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There&amp;#39;s also the aspect of using TF-M which might change some things w.r.t the samples provided as solutions to the exercises, but for now lets have a look at the external flash configuration as well as the BLE FOTA&amp;nbsp; configuration (if you&amp;#39;re doing BLE Fota and not other types of FOTA).&lt;/p&gt;
&lt;p&gt;Could you either go through the links provided and see if you spot any differences w.r.t configuration of your external flash DFU solution and/or share your implementation of the external flash FOTA (configs, board files, initialization of the qspi/spi driver etc)?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA update with external flash</title><link>https://devzone.nordicsemi.com/thread/535296?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 10:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e340c822-4f3c-42b3-8c27-a9e6a6b22a82</guid><dc:creator>veli-pekka</dc:creator><description>&lt;p&gt;there is in build/mcuboot/zephyr/.config and .config.sysbuild&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Which makes that warning look quite strange.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>