<?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>MCUBOOT + NCS 3.0.1 + Snippets won&amp;#39;t compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122149/mcuboot-ncs-3-0-1-snippets-won-t-compile</link><description>NCS 3.0.1 MCUBOOT nRF52840 
 I am adding MCUBOOT to the coap_client example, which inlcudes snippets in the build configuration (ci, debug, logging, mtd). The snippets are located in the project directory, as in the example. 
 I followed the steps in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jun 2025 14:31:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122149/mcuboot-ncs-3-0-1-snippets-won-t-compile" /><item><title>RE: MCUBOOT + NCS 3.0.1 + Snippets won't compile</title><link>https://devzone.nordicsemi.com/thread/538690?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 14:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83daf5f0-6487-4c81-a71a-67a8f6c41300</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;Snippets apply to all images, as described here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/config_and_build/config_and_build_system.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/config_and_build/config_and_build_system.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;When using&amp;nbsp;&lt;a class="reference internal" href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/config_and_build/config_and_build_system.html#configuration-system-overview-sysbuild"&gt;&lt;span class="std std-ref"&gt;Sysbuild&lt;/span&gt;&lt;/a&gt;, the snippet is applied to all images, unless the image is specified explicitly (&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;-D&amp;lt;image_name&amp;gt;_SNIPPET=&amp;quot;&amp;lt;your_snippet&amp;gt;&amp;quot;&lt;/span&gt;&lt;/code&gt;).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/config_and_build/cmake/index.html#cmake-options"&gt;https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/app_dev/config_and_build/cmake/index.html#cmake-options&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In VS Code, edit the build configuration like so:&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/pastedimage1749568678913v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Now it compiles.&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + NCS 3.0.1 + Snippets won't compile</title><link>https://devzone.nordicsemi.com/thread/538669?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 13:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f8128b-b7fc-4587-9873-07e4532ab728</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you try to build coap_client sample using configurations shown below?&lt;br /&gt;sysbuild.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# STEP 3.1 - MCUboot should use external flash
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_BOOTLOADER_MCUBOOT=y&lt;/pre&gt;&lt;br /&gt;sysbuild\mcuboot.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# STEP 1.2 - Enable QSPI driver for MCUboot
CONFIG_NORDIC_QSPI_NOR=y

# STEP 4.1 - Increase number of sectors
# This is 512 for the nRF54L15 but can be smaller for other chips
CONFIG_BOOT_MAX_IMG_SECTORS=512
&lt;/pre&gt;&lt;br /&gt;prj.conf&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# everything that is already there plus Kconfig flag shown below

# STEP 1.1 - Enable QSPI driver for Application
CONFIG_NORDIC_QSPI_NOR=y&lt;/pre&gt;&lt;br /&gt;app.overlay&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* STEP 2.1 - Add external flash to application */
&amp;amp;mx25r64 {
 status = &amp;quot;okay&amp;quot;;
};  

/ {
 chosen {
 nordic,pm-ext-flash = &amp;amp;mx25r64;
 };
};&lt;/pre&gt;&lt;br /&gt;sysbuild\mcuboot.overlay&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* STEP 2.2 - Add external flash to MCUboot */
&amp;amp;mx25r64 {
 status = &amp;quot;okay&amp;quot;;
};  

/ {
 chosen {
 nordic,pm-ext-flash = &amp;amp;mx25r64;
 };
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>