<?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>Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121394/multi-image-fota-on-nrf5340-using-external-nand-flash-app-net-core</link><description>Hi Nordic team, 
 We’ve implemented a custom firmware update flow for our nRF5340-based device , which supports a robust single-image FOTA process using external NAND flash . The update is downloaded via HTTPS (using fota_download ), written to NAND via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Nov 2025 13:26:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121394/multi-image-fota-on-nrf5340-using-external-nand-flash-app-net-core" /><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/554539?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2025 13:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec442f05-a372-4c0c-93e5-8fa8e9f2a997</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Riccardo,&lt;/p&gt;
&lt;p&gt;Its been a while since I did think about this last, so Im not sure I managed to wrap my head around this one again quite yet.&lt;/p&gt;
&lt;p&gt;Let me ask some questions to make sure I understand now:&lt;/p&gt;
&lt;p&gt;With v2.9.2, what is the problem you have now, if you can give a simplified explanation? (Not of the cause, but of the resulting behaviour)&lt;/p&gt;
&lt;p&gt;What specifically do you hope that I can help with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/553670?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 12:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4386db-1799-411f-84d2-77269a002274</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Sigurd, any updates ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/553014?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 12:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71fd6d06-9a5d-466e-80b1-354abfcd65fb</guid><dc:creator>Riccardo Gaiati</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/121394/multi-image-fota-on-nrf5340-using-external-nand-flash-app-net-core/539004"]&lt;p&gt;Here is the fix:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/257"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/257&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can check if this is in your SDK version.&lt;/p&gt;[/quote]
&lt;p&gt;This fix was introduced the 31 August 2023&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1761914649343v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but the day after the modifications were reverted:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-mcuboot/pull/272"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/272&lt;/a&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1761914939874v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/553007?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 12:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a082e22-9800-4578-9a82-0ce7385fa922</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i noticed that the code invoked&amp;nbsp;by the MCUboot - and causing the BUS FAULT exception- is in the file &lt;em&gt;loader_legacy_child_parent.c.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1761913004988v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The address of the mcuboot_secondary slot is in the register R3 (0x7EC2000).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/552925?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 15:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90b7756b-a40a-4599-8ac6-50436887eceb</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;sorry for the delay.&lt;/p&gt;
&lt;p&gt;I actually moved to SDK 2.9.2, still with multi image build, but i can see that the problem is still there.&lt;br /&gt;I am using one single slot in the external flash to upgrade the netcore. With this configuration, this code&amp;nbsp; (similar to the screen shoot i posted in the previous message) is executed:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1761837298972v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;secondary_fa-&amp;gt;fa_off&lt;/code&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;span&gt;contains the start offset from the beginning of the external flash memory and the&amp;nbsp;&lt;/span&gt;&lt;code&gt;hdr&lt;/code&gt;&lt;span&gt;&amp;nbsp;pointer is accessing this address, which does not exist within the memory address of the nrf5340.&lt;br /&gt;&lt;br /&gt;The upgrade of the appcore works properly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Thanks in advance !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Riccardo Gaiati&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/545186?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2025 11:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42d92542-443b-4b1e-bb30-99a653325d9b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Vidar is out, looking at the linked devzone case and discussion I get the impression that it uses external flash yes.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/544887?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2025 08:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a71efd34-9135-4192-859b-d3c8c780efa7</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;i apologize for the delay in replying to you.&lt;/p&gt;
&lt;p&gt;you mean the example project located &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7142.peripheral_5F00_lbs_5F00_dfu_5F00_test_5F00_nrf5340_5F00_v290_5F00_non_5F00_sim.zip"&gt;here&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;I am not using the sysbuild yet with sdk 2.7.0, but still the multi image build.&lt;/p&gt;
&lt;p&gt;And in my project the&amp;nbsp;mcuboot_secondary (&lt;span&gt;mcuboot_secondary_1 is not used yet) stand in the external flash.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does your example uses the external flash ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will have a look asap. Thanks for the help !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/543941?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 12:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbb6300-8fa6-4a95-a9b6-d7bb75147c0a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;We transitioned to using Sysbuild in v2.7.0 and this lead to some breaking changes around the non-sim. DFU support, but I did manage work around this in the sample I posted here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0/525315"&gt;RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?&lt;/a&gt;&amp;nbsp;and figured the same approach would work in v2.7.0 since both are using the same build mechanism. Did you try building the sample I uploaded?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/543756?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 13:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0aa5f4a-dd87-4b68-a2df-42ddf134bbd0</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p style="padding-left:30px;"&gt;I just found this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/114981/update-custom-net-core-image-on-nrf5340-with-ncs-v2-7-0-using-external-spi-flash"&gt;post&lt;/a&gt;, where it reported this for the sdk 2.7.0:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/114981/update-custom-net-core-image-on-nrf5340-with-ncs-v2-7-0-using-external-spi-flash/504371"]Unfortunately, one of the developers has confirmed that it&amp;#39;s currently not possible to update the network core from external flash unless simultaneous updates are enabled. Do you have any existing devices that need to be updated? The reason I ask is that it&amp;#39;s not possible to change the memory layout through DFU[/quote]
&lt;p&gt;This confirms the scenario i am having.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/543750?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 13:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da74dbb2-38a6-4e06-a83d-f903c61e726d</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Vidar&lt;br /&gt;Thanks for you reply. As i see from your reply, the SDK is 2.9.0, mine is 2.7.0. Nevertheless my configuration does not have this section, but with the fix i reported above, it works anyhow.&lt;br /&gt;The problem i see with the original loader.c file is that a pointer tries to reach an address - of the external flash - that does not exist in the address of the nrf5340. I dont see any code in the loader.c from SDK 2.7.0 that invoke the flash_simulator functions (like instead i see in the fixed one).&lt;br /&gt;I might be wrong, but loader.c is not generated at compile time based on the Kconfig parameter. Is it ?&lt;br /&gt;Would it be just enough to declare in my static pm file the simulated ram to fix that ?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your kind support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/543724?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 11:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27594d6-d4ce-47cf-bcf1-bf800d32fe3f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Riccardo,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. Sigurd is currently out of the office. Please have a look at the sample I posted here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0/525315"&gt;RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?&lt;/a&gt;&amp;nbsp; and compare it with your configuration. For example, make sure you have the emulated flash partition in RAM.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0272.pastedimage1740587592879v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar Berg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/543158?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 11:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93303c1-e763-4e2d-b321-3784e74dcd63</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;are there any updates ? Thanks in advance !&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Riccardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/540914?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 15:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e57b7f-24d1-4591-8818-fdc19bb109c1</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks so much for the update. Much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/540892?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 14:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b8625c-3fc4-4574-a185-8458566e15b5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The delay in answering here is due to limited staff during this period. I will try to get back to you in two or three weeks. Sorry for the inconvenience.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539981?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2025 08:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45b6e4d3-1091-4fdf-a8c9-44c86216e4b0</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Good morning Sigurd,&lt;/p&gt;
&lt;p&gt;thanks a lot for the time spending on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To your question: i test the firmware upgrade on our project after moving to SDK 2.7.0. At the moment, i am using a single mcuboot slot, so the app and net core update is not simultaneous.&lt;/p&gt;
&lt;p&gt;The problem occurred at the moment of the netcore upgrade. This happens aswell on the sdk 2.1.1 where we introduced the fix mentioned in the link&amp;nbsp;you sent me. I open a couple of tickets in the past regarding this problem.&lt;/p&gt;
&lt;p&gt;Actually i was trying to be kind when i said &amp;quot;&lt;em&gt;it seems not&lt;/em&gt;&amp;quot;. In reality, from my tests and analysis, the problem has not been addressed. You can see it from the screen-shot i posted in my previous message where i compare the original loader.c file with the fixed one.&lt;/p&gt;
&lt;p&gt;In the original file loader.c at line 1400,&amp;nbsp;&lt;code&gt;secondary_fa-&amp;gt;fa_off&lt;/code&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;contains the start offset from the beginning of the external flash memory and the &lt;code&gt;hdr&lt;/code&gt; pointer is accessing this address, which does not exist within the memory address of the nrf5340. Despite that, i could see, during debugging, that the firmware was hanging forever within the function&amp;nbsp;&lt;code&gt;pcd_network_core_update(net_core_fw_addr, fw_size)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1750408888622v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Riccardo&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539834?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 08:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0525c131-2548-4535-aa17-0e1bf2fc998b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;From what I can tell, the fix I mentioned was added in v2.5.0, but then there has been a lot of changes to the same file between v2.5.0 and v2.7.0, so we cannot see the fix 1-to-1.&lt;/p&gt;
&lt;p&gt;So let me instead take a step back and check what we really are looking at here:&lt;/p&gt;
[quote user="Riccardo Gaiati"]&lt;p&gt;According to the link &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html#dfu_and_fota"&gt;here&amp;nbsp;&lt;/a&gt;, the bug&amp;nbsp;&lt;span&gt;NCSDK-21379 should be solved from 2.5.3, but it seems not. Could I please have a feedback from you ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;When you said &amp;quot;it seems not&amp;quot;, can you explain how you observe this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539746?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 14:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6f6aec-f2e0-41dd-8c25-6efc7f0a4d64</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Thanks anyhow Sigurd. Much appreciated !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539738?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 14:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c0267f0-9409-4bf9-87e5-72bfebc44cd7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Unfortunally, I do not have anyhting yet. I will try to get back to you tomorrow or friday&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539530?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 11:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cabcb9e9-b04f-4d38-8952-d9fcc79a4dfd</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi ! any updated ? Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539018?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 11:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f2d9a9d-ec4d-4511-be27-321451dce752</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks so much for the kind reply.&lt;/p&gt;
&lt;p&gt;I compared the fix file in your link with the one in the SDK 2.7.0 and to me &lt;strong&gt;&lt;em&gt;it does not seem that this problem has been fixed&lt;/em&gt;&lt;/strong&gt;:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749727692373v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;SDK 2.7.0 uses the MCUBOOT version 2.1.0.&lt;br /&gt;&lt;br /&gt;The bug is recorded as&amp;nbsp;&lt;span&gt;NCSDK-21379 and according to the known anomalies from nordic, it has been fixed after SDK 2.5.3&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749729051004v2.png" alt=" " /&gt;&lt;br /&gt;But apparently not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;OR am i missing something ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/539004?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 10:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0acf2eeb-3996-4151-b465-ebcb15456f8b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Here is the fix:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/257"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/257&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can check if this is in your SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/538637?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 11:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c08589-d0aa-4ef9-a0dc-f04743414258</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;just to understand what you stated in your last message:&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/121394/multi-image-fota-on-nrf5340-using-external-nand-flash-app-net-core/534921"]We do not have integrated support for NAND flash, so you will have to figure out the NAND part yourself.&lt;br /&gt;Check out &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html"&gt;Known Issues&lt;/a&gt; in general[/quote]
&lt;p&gt;&lt;span&gt;i am using nowadays the SDK 2.7.0 and it seems the bug&amp;nbsp;&lt;/span&gt;&lt;span&gt;NCSDK-21379 still exists even if it has been removed from the list of known anomalies.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;According to the link &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html#dfu_and_fota"&gt;here&amp;nbsp;&lt;/a&gt;, the bug&amp;nbsp;&lt;span&gt;NCSDK-21379 should be solved from 2.5.3, but it seems not. Could I please have a feedback from you ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Riccardo&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-Image FOTA on nRF5340 Using External NAND Flash (App + Net Core)</title><link>https://devzone.nordicsemi.com/thread/534921?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 13:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b28911c-dc88-455e-8be4-912235241cb3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;MCUboot + External Flash + Multi-Image:&lt;/strong&gt;&lt;br /&gt; Can MCUboot handle &lt;strong&gt;multi-image updates&lt;/strong&gt; from external NAND using:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;kconfig&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;Kopieren&lt;span&gt;Bearbeiten&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;code&gt;&lt;span&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
CONFIG_NRF53_MULTI_IMAGE_UPDATE=y
CONFIG_NRF53_UPGRADE_NETWORK_CORE=y
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Is this officially supported in conjunction with &lt;code&gt;stream_flash&lt;/code&gt; and external slots?&lt;/p&gt;[/quote]
&lt;p&gt;Specifically, MCUboot calls &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/modules/mcuboot/hooks/nrf53_hooks.c"&gt;nrf53_hooks.c&lt;/a&gt; when doing the dual core swapping. Here, it will perform PCD swap to netcore when the data is swapped from mcuboot_secondary to mcuboot_primary.&lt;/p&gt;
&lt;p&gt;I cannnot see any flash operations here, so I guess that will be handled by mcuboot itself. I think MCUboot uses &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/5afc0aab0cdd3034861a89a64238d8fff80c6a4d/boot/bootutil/src/loader.c#L1802-L1803"&gt;boot_copy_region&lt;/a&gt;(), which uses flash_area_write().&lt;/p&gt;
&lt;p&gt;So I guess the answer would be &amp;quot;no, stream_flash is not supported as such&amp;quot;.&lt;/p&gt;
[quote user=""]&lt;p&gt;Would you recommend:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Downloading and storing two separate images independently?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Or combining them into a single bundle to unpack after download?&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Our existing solutions stores two separate images (mcuboot_secondary and mcuboot_secondary_1). See &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; for an explanation.&lt;/p&gt;
[quote user=""]What’s the cleanest way to define partition layout (e.g., via &lt;code&gt;pm_static.yml&lt;/code&gt;) to store both images in NAND and allow MCUboot to find them?[/quote]
&lt;p&gt;The partition manager has support for multi-image DFU.&lt;/p&gt;
[quote user=""]What’s the best practice to ensure both images are valid before rebooting?&lt;br /&gt; Should we compute and compare hashes manually, or use image manager APIs?[/quote]
&lt;p&gt;I dont think i got a specific recommendation here. Just verify, in whatever way you find best.&lt;/p&gt;
[quote user=""]How do we ensure &lt;strong&gt;both images are rolled back&lt;/strong&gt; if one fails post-upgrade?&lt;br /&gt; Does MCUboot handle this natively in multi-image mode, or do we need additional coordination?[/quote]
&lt;p&gt;We do not support rollback for nRF5340 multi-image DFU. Ref &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf53/simultaneous_multi_image_dfu_nrf5340.html"&gt;Simultaneous multi-image DFU with nRF5340 DK&lt;/a&gt;.&lt;/p&gt;
[quote user=""]Are there known limitations, recommended patterns, or pitfalls when doing multi-image OTA updates from NAND flash on the nRF5340?[/quote]
&lt;p&gt;Here is what I can think of:&lt;/p&gt;
&lt;p&gt;nRF5340 multi-image DFU as support status: Experimental&lt;br /&gt;Rollback is not supported for nRF5340 multi-image DFU.&lt;br /&gt;We do not have integrated support for NAND flash, so you will have to figure out the NAND part yourself.&lt;br /&gt;Check out &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html"&gt;Known Issues&lt;/a&gt; in general&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>