<?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>sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122816/sysbuild-partition-manager-mcuboot-external-flash</link><description>Using NCS 3.0.0 
 When placing the app slot 1 in external flash, mcuboot cannot open the flash area. 
 I am testing this with nrf54L15 + 8 MB SPI flash on the DVK. 
 This same issue occurs with nrf52840 + 2MB QSPI flash. 
 static partition config: 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jul 2025 20:24:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122816/sysbuild-partition-manager-mcuboot-external-flash" /><item><title>RE: sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/thread/541994?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2025 20:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce90648-8363-4f3e-9f0a-1a6b362d29ae</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to hear that. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/thread/541991?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2025 19:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ebf3f79-8628-448a-ac14-70994ffd20bd</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;Thank you, that was very helpful!&lt;/p&gt;
&lt;p&gt;1. I fixed my boot loop issue. It had to do with board file issues. I synced my board files with the nrf54l15dk board files in NCS 3.0.0 and it solved the boot loop.&lt;/p&gt;
&lt;p&gt;2. Based on your feedback I was missing:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now everything looks good:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.003,449] &amp;lt;inf&amp;gt; spi_nor: mx25r6435f@0: SFDP v 1.6 AP ff with 3 PH
[00:00:00.010,654] &amp;lt;inf&amp;gt; spi_nor: PH0: ff00 rev 1.6: 16 DW @ 30
[00:00:00.017,088] &amp;lt;inf&amp;gt; spi_nor: mx25r6435f@0: 8 MiBy flash
[00:00:00.023,078] &amp;lt;inf&amp;gt; spi_nor: PH1: ffc2 rev 1.0: 4 DW @ 110
[00:00:00.031,606] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:00:00.037,479] &amp;lt;dbg&amp;gt; mcuboot: boot_slots_compatible: Non-optimal sector distribution, slot0 has 354 usable sectors (362 assigned) but slot1 has 362 assigned
[00:00:00.052,177] &amp;lt;dbg&amp;gt; mcuboot: swap_write_block_size_check: Discrepancy, slot1 expected write block size: 16, actual: 1
[00:00:00.063,556] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.073,571] &amp;lt;inf&amp;gt; mcuboot: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.083,531] &amp;lt;inf&amp;gt; mcuboot: Boot source: none
[00:00:00.089,089] &amp;lt;inf&amp;gt; mcuboot: Image index: 0, Swap type: none
[00:00:00.194,900] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0x13000
[00:00:00.202,447] &amp;lt;inf&amp;gt; mcuboot: Image version: v0.0.0
[00:00:00.254,553] &amp;lt;inf&amp;gt; main: Canvas Zephyr Firmware v2.1.99+1752088601 [bl54l15_dvk]&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/thread/541989?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2025 18:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a680c9eb-9ba0-4092-9919-93fb7375e52c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I am testing this with nrf54L15 + 8 MB SPI flash on the DVK.&lt;/p&gt;
&lt;p&gt;This same issue occurs with nrf52840 + 2MB QSPI flash.&lt;/p&gt;[/quote]
&lt;p&gt;The settings to use the external flash memory via SPI or QSPI are different.&amp;nbsp;Please take a look at this course &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; .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This sample&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v4.0.99-ncs1/samples/subsys/mgmt/mcumgr/smp_svr"&gt;zephyr/samples/subsys/mgmt/mcumgr/smp_svr&lt;/a&gt;&amp;nbsp;can demonstrate on how to set secondary on the nRF54L15DK external flash. You can build with the&amp;nbsp; &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v4.0.99-ncs1/samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml#L172"&gt;extra_args&lt;/a&gt;:&lt;br /&gt; - OVERLAY_CONFIG=&amp;quot;overlay-bt.conf&amp;quot;&lt;br /&gt; - DTC_OVERLAY_FILE=&amp;quot;boards/nrf54l15dk_nrf54l15_cpuapp_ext_flash.overlay&amp;quot;&lt;br /&gt; - mcuboot_CONF_FILE=&amp;quot;boards/nrf54l15dk_nrf54l15_cpuapp_ext_flash.conf&amp;quot;&lt;br /&gt; - mcuboot_EXTRA_DTC_OVERLAY_FILE=&amp;quot;boards/nrf54l15dk_nrf54l15_cpuapp_ext_flash.overlay&amp;quot;&lt;br /&gt; - SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;br /&gt; - SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/thread/541848?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 20:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adf80984-e910-443a-b0ac-ca2e6d483ed9</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;Now I am experiencing a boot loop. Any ideas of where to look? The debugger isn&amp;#39;t showing anything useful...&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:02:48.723,857] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:02:48.724,179] &amp;lt;wrn&amp;gt; mcuboot: Cannot upgrade: not a compatible amount of sectors
[00:02:48.833,905] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:02:48.834,227] &amp;lt;wrn&amp;gt; mcuboot: Cannot upgrade: not a compatible amount of sectors&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sysbuild + partition manager + mcuboot + external flash</title><link>https://devzone.nordicsemi.com/thread/541833?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 15:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f50c6e-198a-4022-ac32-f7a55e621943</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;I believe I have solved the issue. BOTH of the following need to be set at the sysbuild level:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/pre&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>