<?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>nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114948/nrf-connect-sdk-v2-7-0---external-spi-flash-not-being-allocated-to-mcuboot_secondary-partition</link><description>Hello, I&amp;#39;m updating an existing NCS 2.6 application ( smp_ble_feat ) for a Particle Xenon ( nRF52840 board) that uses onboard 4MB SPI flash. 
 I&amp;#39;ve successfully built the new sysbuild version under NCS 2.7.0 . In examining the partitions.yml file, I find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Sep 2024 21:32:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114948/nrf-connect-sdk-v2-7-0---external-spi-flash-not-being-allocated-to-mcuboot_secondary-partition" /><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/504239?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 21:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03be2e41-33ed-4dff-9385-37da98a07b38</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Thanks Amanda.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/504225?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 18:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52478e3c-73ee-4207-a64d-327f70e9a6cf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I would suggest to set the custom board configs and overlay under app/&lt;span&gt;sysbuild/mcuboot/boards instead of touch&amp;nbsp;nordic/ncs/v2.7.0/bootloader/mcuboot/boot/boards/zephyr.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/504209?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 14:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc11012f-4a66-4946-bead-a86fd9bace49</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;What is your recommendation for where the MCUBOOT files (conf and overlay) should be placed for a board?&lt;/p&gt;
&lt;p&gt;For MCUBOOT sysbuild (NCS &amp;nbsp;2.7.0), I have these files in nordic/ncs/v2.7.0/bootloader/mcuboot/boot/boards/zephyr.&lt;/p&gt;
&lt;p&gt;For the special cases where I want to use the external SPI flash for app and MCUboot, files have been placed in&amp;nbsp;&lt;span&gt; sysbuild/mcuboot/boards.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Is it recommended to place the MCUBOOT conf/overlay files in sysbuild/mcuboot/boards? Thanks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/504201?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 14:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c499d0-5862-41d0-af9b-348d5ce8fb78</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to hear it works.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/503859?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 02:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:590b3a34-14c1-4e7e-a1e9-906f10622a71</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Your suggestion&amp;nbsp;below worked. Thank you. It had to be&amp;nbsp;something simple!&lt;br /&gt;&lt;br /&gt;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The following project layouts work for external flash.&lt;br /&gt;&lt;br /&gt;Project folder layout #1&lt;/p&gt;
&lt;p&gt;- This layout worked with MCUBoot board conf/overlay files in &lt;br /&gt; ncs/v2.7.0/bootloader/mcuboot//boot/zephyr/boards&lt;br /&gt; - particle_xenon.conf&lt;br /&gt; - particle_xenon.overlay&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/02_5F00_smp_5F00_ble_5F00_feat_5F00_spi_5F00_flash_5F00_ncs270_5F00_no_5F00_sysbuild_5F00_folder.png" /&gt;&lt;br /&gt;&lt;br /&gt;Project folder layout #2&lt;/p&gt;
&lt;p&gt;- Uses sysbuild/mcuboot/boards folder containing the board conf/overlay files&lt;br /&gt; &lt;br /&gt; - The MCUBoot configuration in sysbuild/mcuboot overrides the default configuration (if specified) in location&lt;br /&gt; ncs/v2.7.0/bootloader/mcuboot//boot/zephyr/boards of conf/overlay files&lt;/p&gt;
&lt;p&gt;- mcbuboot folder needed a &amp;quot;prj.conf&amp;quot;,otherwise get a &amp;quot;no prj.conf in mcuboot folder&amp;quot; error&lt;br /&gt;&lt;br /&gt; - used a blank &lt;strong&gt;prj.conf&lt;/strong&gt; file&lt;br /&gt; &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/03_5F00_smp_5F00_ble_5F00_feat_5F00_spi_5F00_flash_5F00_ncs270_5F00_using_5F00_sysbuild_5F00_folder.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/503824?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 17:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573eb277-3615-4535-ac60-6bd22921e6c7</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Earlier I did try with particle_xenon conf &amp;amp; overlay files in&amp;nbsp;&lt;span&gt;smp_ble_feat_spi_flash_ncs270/sysbuild/mcuboot/boards but build failed because it complained that there was no proj.conf under mcuboot folder.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As per your suggestion, I&amp;rsquo;ll remove the following from MCUBOOT particle_xenon.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y&lt;br /&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and update sysbuild.conf to the following&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SB_CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y&lt;br /&gt;SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What is your recommendation for where the MCUBOOT files (conf and overlay) should be placed for a board?&lt;/p&gt;
&lt;p&gt;For MCUBOOT sysbuild, I have these files in nordic/ncs/v2.7.0/bootloader/mcuboot/boot/boards/zephyr.&lt;/p&gt;
&lt;p&gt;For the special cases where I want to use the external SPI flash for app and MCUboot, Is it recommended to place the MCUBOOT conf/overlay files in sysbuild/mcuboot/boards?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;rsquo;ll try your recommendation and get back to you. Hopefully, I&amp;rsquo;ll get MCUBOOT to use the external flash.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Ravi&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: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/503815?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 16:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769a36ba-855c-4b01-a72d-769dd1ff15c9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="zpm1066"]&lt;strong&gt;particle_xenon.conf&lt;/strong&gt;&amp;nbsp;in &amp;nbsp;&lt;strong&gt;smp_ble_feat_spi_flash_ncs270/sysbuild/mcuboot&lt;/strong&gt;&amp;nbsp; and[/quote]
&lt;p&gt;If you want to use the board name for the mcuboot, it should be located under&amp;nbsp;smp_ble_feat_spi_flash_ncs270/sysbuild/mcuboot/boards.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try to add&amp;nbsp;the following configs&amp;nbsp;&lt;/span&gt;sysbuild.conf:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Settings required for external flash to be used for DFU
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/503642?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 22:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14fd6427-9905-47e7-bf8f-f82e2057beb1</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Note that I&amp;#39;ve built the project&amp;nbsp;with &lt;strong&gt;NCS v2.7.0&lt;/strong&gt; from both within nRF Connect VSCode and also from the&amp;nbsp;command line using &lt;strong&gt;--sysbuild&lt;/strong&gt; option.&lt;br /&gt;&lt;br /&gt;The MCUboot conf and overlay files for&amp;nbsp;&lt;span&gt;&lt;strong&gt;particle_xenon&lt;/strong&gt; board are in the default location&amp;nbsp;&lt;/span&gt;&lt;strong&gt;nordic/ncs/v2.7.0/bootloader/mcuboot/boot/boards/zephyr.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Project structure is:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:136px;max-width:170px;" alt=" " height="136" src="https://devzone.nordicsemi.com/resized-image/__size/340x272/__key/communityserver-discussions-components-files/4/Screen-Shot-2024_2D00_09_2D00_24-at-5.08.03-PM.png" width="170" /&gt;&lt;br /&gt;&lt;br /&gt;With this setup, firmware built and ran successful. The &lt;strong&gt;app&lt;/strong&gt; correctly used spi flash but&amp;nbsp;&lt;strong&gt;mcuboot_secondary&lt;/strong&gt;&amp;nbsp;ended up using the soc&amp;nbsp;flash.&lt;br /&gt;&lt;br /&gt;regions.yml below shows that QSPI NOR flash has been selected despite setting in &lt;strong&gt;mcuboot/boot/zephyr/boards/particle_xenon.conf&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:120px;max-width:160px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2024_2D00_09_2D00_24-at-6.04.36-PM.png" /&gt;&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/Screen-Shot-2024_2D00_09_2D00_24-at-6.00.08-PM.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:120px;max-width:160px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2024_2D00_09_2D00_24-at-6.02.06-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Following your suggestion, I tried placing &lt;br /&gt;&lt;strong&gt;particle_xenon.conf&lt;/strong&gt;&amp;nbsp;in &amp;nbsp;&lt;strong&gt;smp_ble_feat_spi_flash_ncs270/sysbuild/mcuboot&lt;/strong&gt;&amp;nbsp; and &lt;br /&gt;&lt;strong&gt;particle_xenon.overlay&lt;/strong&gt; in &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;smp_ble_feat_spi_flash_ncs270/sysbuild/mcuboot/boards. &lt;/strong&gt;However,&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;the build failed with the following error.&lt;br /&gt;&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/Screen-Shot-2024_2D00_09_2D00_24-at-4.47.49-PM.png" /&gt;&lt;br /&gt;&lt;br /&gt;After renaming&amp;nbsp;&amp;nbsp;&lt;strong&gt;particle_xenon.conf &lt;/strong&gt;to&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;b&gt;prj.conf&lt;/b&gt;, build was successful but the &lt;strong&gt;mcuboot_secondary&lt;/strong&gt; still isn&amp;#39;t using the external flash. In fact, the firmware just goes into the MCUboot bootloader.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Here is the revised project structure.&lt;b&gt;&lt;br /&gt;&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/Screen-Shot-2024_2D00_09_2D00_24-at-4.27.53-PM.png" /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;I have no issue in building &amp;amp; successfully running the project with exactly same MCUboot conf &amp;amp; overlay files under &lt;strong&gt;NCS 2.6.1 &lt;/strong&gt;using child_image/mcuboot/boards layout.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Note that SPI flash is being used by both &lt;strong&gt;app&lt;/strong&gt;&amp;nbsp;and &lt;strong&gt;mcuboot_secondary&lt;/strong&gt;.&lt;br /&gt;&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/Screen-Shot-2024_2D00_09_2D00_24-at-6.11.59-PM.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&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/Screen-Shot-2024_2D00_09_2D00_24-at-6.14.42-PM.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I suspect the issue with the NCS 2.7.0 sysbuild may be with the MCUboot conf &amp;amp; overlay file placements.&lt;/p&gt;
&lt;p&gt;Please advise what to try next. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK v2.7.0 - External SPI flash not being allocated to mcuboot_secondary partition</title><link>https://devzone.nordicsemi.com/thread/503625?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 16:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280866fc-8c33-4bad-9ce0-0226c92c75fb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]Here is the MCUBoot configuration, &lt;strong&gt;particle_xenon.conf&lt;/strong&gt;:[/quote]
&lt;p&gt;Where does the&amp;nbsp;particle_xenon.conf locate?&lt;/p&gt;
&lt;p&gt;Try to place the mcuboot config file under the sysbuild folder as this example:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/applications/nrf5340_audio/sysbuild/mcuboot"&gt;applications/nrf5340_audio/sysbuild/mcuboot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>