<?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>nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126196/nrf54l15-mcuboot-mx25r64-with-sqspi-failed-to-open-flash-area-on-mx25r64</link><description>Hello 
 I tried to test OTA function with smp_svr example. 
 I want to use the external flash mx25r64 on nrf54l15-dk(v0.9.3) to store update Firmware over BLE. SDK version 3.2.0 was used. 
 The driver and dts for mcuboot was configured with &amp;quot;sysbuild</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jan 2026 09:39:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126196/nrf54l15-mcuboot-mx25r64-with-sqspi-failed-to-open-flash-area-on-mx25r64" /><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/558672?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 09:39:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0d8c87-3ec9-488a-a3c9-cf24c7dd13d7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming that it worked. I have reported the issues found here internally so we can improve the sQSPI support in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/558553?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 05:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e19f656-5d53-4335-8d1a-eac6a7f00282</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;Finally, it works.&lt;/p&gt;
&lt;p&gt;Thanks for your patient help.&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/boot7.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/558491?ContentTypeID=1</link><pubDate>Mon, 12 Jan 2026 11:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:615e0366-e201-4feb-83db-c7129502c27d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to reproduce the same here and it turns it was the same problem reported in this thread:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/125156/nrf54l15-mcuboot-external-flash-with-sqspi-vpr-problems"&gt;nRF54L15 + MCUboot + External flash with SQSPI: VPR problems&lt;/a&gt;&amp;nbsp;causing the application code to hang on startup. However, patching the sqspi driver as suggested in that thread did not work for me. Instead I had to modify the bootloader code to reset VPR before branching to the app:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/boot/zephyr/nrf_cleanup.c b/boot/zephyr/nrf_cleanup.c
index c1e5a178..e7f49289 100644
--- a/boot/zephyr/nrf_cleanup.c
+++ b/boot/zephyr/nrf_cleanup.c
@@ -22,6 +22,11 @@
 #if defined(NRF_DPPIC)
     #include &amp;lt;hal/nrf_dppi.h&amp;gt;
 #endif
+#if defined(CONFIG_MSPI_NRF_SQSPI)
+    #include &amp;lt;hal/nrf_vpr.h&amp;gt;
+    #include &amp;lt;../../nrfxlib/softperipheral/include/softperipheral_regif.h&amp;gt;
+#endif
+
 
 #include &amp;lt;string.h&amp;gt;
 
@@ -111,6 +116,24 @@ static void nrf_cleanup_clock(void)
 }
 #endif
 
+#if defined(CONFIG_MSPI_NRF_SQSPI)
+static void nrf_cleanup_sqspi(void) 
+{
+    nrf_vpr_cpurun_set(NRF_VPR, false);
+
+    // Reset VPR.
+    nrf_vpr_debugif_dmcontrol_mask_set(NRF_VPR,
+                                       (VPR_DEBUGIF_DMCONTROL_NDMRESET_Active
+                                        &amp;lt;&amp;lt; VPR_DEBUGIF_DMCONTROL_NDMRESET_Pos |
+                                        VPR_DEBUGIF_DMCONTROL_DMACTIVE_Enabled
+                                        &amp;lt;&amp;lt; VPR_DEBUGIF_DMCONTROL_DMACTIVE_Pos));
+    nrf_vpr_debugif_dmcontrol_mask_set(NRF_VPR,
+                                       (VPR_DEBUGIF_DMCONTROL_NDMRESET_Inactive
+                                        &amp;lt;&amp;lt; VPR_DEBUGIF_DMCONTROL_NDMRESET_Pos |
+                                        VPR_DEBUGIF_DMCONTROL_DMACTIVE_Disabled
+                                        &amp;lt;&amp;lt; VPR_DEBUGIF_DMCONTROL_DMACTIVE_Pos));
+}
+#endif
 void nrf_cleanup_peripheral(void)
 {
 #if defined(NRF_RTC0)
@@ -123,6 +146,10 @@ void nrf_cleanup_peripheral(void)
     nrf_cleanup_rtc(NRF_RTC2);
 #endif
 
+#if defined(CONFIG_MSPI_NRF_SQSPI)
+    nrf_cleanup_sqspi();
+#endif 
+
 #if defined(CONFIG_NRF_GRTC_TIMER)
     nrf_cleanup_grtc();
 #endif
&lt;/pre&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please try applying the the same change on your end?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/558475?ContentTypeID=1</link><pubDate>Mon, 12 Jan 2026 08:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0286470-5e04-4089-90fd-9c729dbb5e21</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;when&amp;nbsp;&lt;span&gt;CONFIG_FLASH_MSPI_NOR_LAYOUT_PAGE_SIZE=4096 was added to mcuboot and app configuration, mcuboot stop at &amp;quot;I: Jumping to the first image slot&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Does it means image in slot-0 is invalid when image magic is bad checked by mcuboot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any other configuration&amp;nbsp;for image need to be set?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/mcuboot.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/558404?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 13:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75ee3d9-a32c-4969-871d-09d26e3f004d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please also add&amp;nbsp;&lt;span&gt;CONFIG_FLASH_MSPI_NOR_LAYOUT_PAGE_SIZE=4096 to your mcuboot and application project configuration to ensure the sector size matches the sector size used in internal memory.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557612?ContentTypeID=1</link><pubDate>Wed, 24 Dec 2025 09:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f915483-2a70-451f-84f7-1ad1cdd196af</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for quick help.&lt;/p&gt;
&lt;p&gt;This configuration has indeed taken the program one step forward, but the&amp;nbsp;image check reports a new &amp;quot;slot sectors&amp;quot; error.&lt;/p&gt;
&lt;p&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/4278.boot.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any other configuration items related to partition?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;part&lt;/span&gt;&lt;span&gt;ition manager file was&amp;nbsp;&lt;/span&gt;attached below.&lt;/p&gt;
&lt;p&gt;pm_static.yaml&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1781.pm_5F00_static.yml.txt"&gt;devzone.nordicsemi.com/.../1781.pm_5F00_static.yml.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557567?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2025 10:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa7321b-2a64-4a6d-ab2e-676213473f47</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try adding&amp;nbsp;SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y to the sysbuild.conf file. This should enable the bootloader to access the secondary slot using the MSPI NOR driver without the -ENOENT error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557437?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 14:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b683e0dc-de03-4492-8b2c-bfdf45dce302</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Max,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for the report. I haven&amp;#39;t managed to figure out what could be wrong here.&lt;/p&gt;
&lt;p&gt;In theory it should work in MCUBoot the same as in application but it seems not. I have forwarded your question internally but due to holiday session I haven&amp;#39;t got the reply yet.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557387?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 02:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376671cf-ec0a-44e3-8d73-57217e88cbf8</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;I&amp;#39;m a bit doubtful whether the external flash is no longer accessible in the boot&amp;nbsp;process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557386?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 01:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040060b8-40c4-44b6-b8b0-805ed794d170</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;It&amp;#39;s the same issue&amp;nbsp;on v3.1.0&amp;nbsp;.&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/5342.Screen.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557384?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 01:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638ffc55-4b0d-430a-baf3-f18b061fcae5</guid><dc:creator>MaxLi</dc:creator><description>&lt;p&gt;Yes,it happens on the first boot.&lt;br /&gt;when mcuboot is disabled, the app can read and write the external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557381?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2025 22:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb102e10-3efb-4f68-aaeb-5a3c230e8848</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Max,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just a quick update, I can reproduce the issue here. Did you see the same issue if you build for v3.1.0 ? Could be that something changed in v3.2.0 caused the problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 + MCUboot + mx25r64 with SQSPI : Failed to open flash area on mx25r64.</title><link>https://devzone.nordicsemi.com/thread/557335?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2025 13:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc13e48a-3adb-46b3-85c1-f385657c1583</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Max,&amp;nbsp;&lt;br /&gt;I&amp;#39;m checking internally to see what could be wrong. Just want to point out that there is another similar ticket but doesn&amp;#39;t seem they have the same problem as you, at least in their case MCUBoot can read the 2nd partition&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/125156/nrf54l15-mcuboot-external-flash-with-sqspi-vpr-problems"&gt;nRF54L15 + MCUboot + External flash with SQSPI: VPR problems&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So my understanding is that you have this issue on the first boot, before you receive any image to the second image&amp;nbsp;partition, correct? If you disable MCUBoot, does the application can access the external flash and read/write there?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>