<?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>nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109739/nrf52840-with-mcuboot-ncs-2-6-0-fails-to-build</link><description>Hello, I&amp;#39;ve trying to build BLE and MCUBoot Bootloader for a nRF52840 board (Particle Xenon) from the nRF Connect sample &amp;quot;Peripheral LBS&amp;quot;. Without MCUBoot Bootloader, the nRF52840 board builds and runs as expected for BLE. 
 However, when I enable MCBOOT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Apr 2024 20:25:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109739/nrf52840-with-mcuboot-ncs-2-6-0-fails-to-build" /><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/477380?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 20:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a715c19-ac79-4969-a036-fc5466a618b5</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Thanks Amanda.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/477379?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 20:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144bf05f-74a5-45fc-b692-05a2be274648</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="zpm1066"]- How to get into the MCUBoot mode via&amp;nbsp;sw0 &amp;amp; reset?[/quote]
&lt;p&gt;Pressing RESET will run the Nordic bootloader with the default setting on&amp;nbsp;nRF52840Dongle unless you erase the nRF5 bootloader. however, I won&amp;#39;t suggest doing that.&lt;/p&gt;
[quote user="zpm1066"]- Can&amp;nbsp;the MCUBoot Bootloader be configured as an UF2 Bootloader?[/quote]
&lt;p&gt;UF2 Bootloader is not provided by us (NordicSemi), and I don&amp;#39;t know how to configure to UF2 bootloader. You can seek help at&amp;nbsp;&lt;a href="https://forums.adafruit.com/"&gt;https://forums.adafruit.com/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&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: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/477215?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 23:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76b5056-ad4b-4c0e-8260-caf18f525163</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;Yesterday, I was able to flash &amp;amp; run the signed&amp;nbsp;&lt;span&gt;&amp;quot;app_update.bin&amp;quot; onto the nrf52840dongle using mcumgr for the&amp;nbsp;&amp;quot;mcuboot_52840dongle_overwrite&amp;quot; example and for the &amp;quot;blinky&amp;quot; &amp;amp; &amp;quot;button&amp;quot; examples from &amp;quot;zephyr/samples/basic&amp;quot;.&lt;br /&gt;&lt;br /&gt;The problem was that I had MCUBoot generated&amp;nbsp;from a different Zephyr repo&amp;nbsp;(Zephyr 3.6.0). I had to recompile and flash the MCUBoot from NCS 2.6.0 repo. I guess there was a signature mismatch and the applications failed to execute.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;However, I still have an issue&amp;nbsp;&lt;/span&gt;running successfully a BLE&amp;nbsp;version of &amp;quot;peripheral_lbs&amp;quot; but another project of mine that was originally derived off the &amp;quot;peripheral_lbs&amp;quot; &amp;nbsp;runs fine. &lt;br /&gt;&lt;br /&gt;Also, another OpenThread Joiner application built&amp;nbsp;within NCS for VSCode doesn&amp;#39;t run either. &lt;br /&gt;&lt;br /&gt;Currently I don&amp;#39;t know why a few of these applications fail to execute properly.&amp;nbsp;So, I need to dig further. &amp;nbsp;Any suggestions what may be the reason?&lt;br /&gt;&lt;br /&gt;All of the above&amp;nbsp;applications run fine when targeted for Particle Xenon (nRF52840) and Thingy53 with MCUBoot. They also run fine when I package the applications&amp;nbsp;for the nRF5 Bootloader on the nRF52840Dongle and flash with nrfutil. &amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;d like to get the OpenThread Joiner to run successfully on a nRF52840Dongle with MCUBoot, as I&amp;#39;m planning to use quite a few of the these for an OpenThread network. At the moment, the fallback appears to use&amp;nbsp;the nRF5 Bootloader.&lt;br /&gt;&lt;br /&gt;Thank you for your assistance and providing the link to the bootloader samples. It proved to be useful.&lt;br /&gt;&lt;br /&gt;A few questions regarding MCUBoot bootlaoder&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;- How to get into the MCUBoot mode via&amp;nbsp;sw0 &amp;amp; reset?&lt;br /&gt;&amp;nbsp; &amp;nbsp;- Can&amp;nbsp;the MCUBoot Bootloader be configured as an UF2 Bootloader?&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll mark this response as the suggested answer for my ticket. Thank you.&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: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/477199?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 18:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6cf58fd-aa48-407e-9b5b-8817c302a9b0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the mislead. My colleague said he hadn&amp;#39;t done the work. Now he added the&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;disclaimer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The dongle docs has this section on &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/2.4.3/zephyr/boards/arm/nrf52840dongle_nrf52840/doc/index.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.3/zephyr/boards/arm/nrf52840dongle_nrf52840/doc/index.html" rel="noopener noreferrer" target="_blank"&gt;Option 2: Using MCUboot in Serial Recovery Mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It does both nRF5 bootloader and MCUboot though, so it&amp;#39;s not optimal. However, it should work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476965?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 17:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7cdf90a-1250-4037-8644-3ea7e3cb6f25</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve reviewed Sigurd&amp;#39;s &amp;quot;mcuboot_52840dongle_overwrite&amp;quot; example and build it successfully without&amp;nbsp;any changes under NCS 2.6.0. &lt;br /&gt;&lt;br /&gt;However, when I flash the &amp;quot;app_update.bin&amp;quot; onto the nrf52840dongle using mcumgr, the application fails to run and I don&amp;#39;t get any serial port enumerated. &lt;br /&gt;&lt;br /&gt;In the example, nrf52840dongle_nrf52840.dts has console configured for&amp;nbsp;cdc_acm_uart (versus uart0 in the Zephyr dts for the board).&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using a nRF52840dongle that has nRF Bootloader and also MCUBoot. The&amp;nbsp;dongle&amp;nbsp;is booted&lt;span&gt;&amp;nbsp;into MCUboot serial recovery mode by plugging the board in with the SW1 button pressed down.&lt;/span&gt;&amp;nbsp;Prior to flashing, I&amp;#39;ve confirmed that&lt;span&gt;&amp;nbsp;serial port &amp;quot;MCUBOOT&amp;quot; gets&amp;nbsp;enumerated on the dongle.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve flashed&amp;nbsp;the generated signed &amp;quot;app_update.bin&amp;quot; to the MCUboot serial port using mcumgr.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Are the steps used for MCUBoot serial recovery mode flashing correct?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;quark11:mcuboot_52840dongle_overwrite quark11$ mcumgr --conntype=serial --connstring=&amp;#39;dev=/dev/cu.usbmodem14101,baud=115200&amp;#39; image upload -e /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/app_update.bin&amp;#160;

&amp;#160;39.32 KiB / 39.32 KiB [========================================================================================] 100.00% 1.89 KiB/s 20s

Done

quark11:mcuboot_52840dongle_overwrite quark11$ mcumgr --conntype=serial --connstring=&amp;#39;dev=/dev/cu.usbmodem14101,baud=115200&amp;#39; reset

Done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*  Executing task: nRF Connect: Generate config nrf52840dongle_nrf52840 for mcuboot_52840dongle_overwrite 

Building mcuboot_52840dongle_overwrite
west build --build-dir /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite --pristine --board nrf52840dongle_nrf52840 --no-sysbuild --cmake-only -- -DNCS_TOOLCHAIN_VERSION=NONE

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Generated zephyr.dts: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v2.6.0/zephyr/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/prj.conf&amp;#39;
Configuration saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.


-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Found devicetree overlay: /opt/nordic/ncs/v2.6.0/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/dts.cmake

warning: HW_STACK_PROTECTION (defined at arch/Kconfig:259) was assigned the value &amp;#39;y&amp;#39; but got the
value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ARCH_HAS_STACK_PROTECTION (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_HW_STACK_PROTECTION and/or look up
HW_STACK_PROTECTION in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: LOG_DEFAULT_LEVEL (defined at subsys/logging/Kconfig.filtering:13) was assigned the value
&amp;#39;0&amp;#39; but got the value &amp;#39;&amp;#39;. Check these unsatisfied dependencies: LOG (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: USB_COMPOSITE_DEVICE (defined at subsys/usb/device/Kconfig:51) was assigned the value &amp;#39;n&amp;#39;
but got the value &amp;#39;y&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_USB_COMPOSITE_DEVICE and/or look up
USB_COMPOSITE_DEVICE in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.


warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging/Kconfig.mode:28) was selected
(set =y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

Parsing /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dongle_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.6.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/child_image/mcuboot.conf&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
MCUBoot bootloader key file: /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



-- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/cmake/partition_manager.cmake:79 (message):
  

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------
          

Call Stack (most recent call first):
  /opt/nordic/ncs/v2.6.0/zephyr/cmake/modules/kernel.cmake:248 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Build: mcuboot_52840dongle_overwrite/build_nrf52dongle (active) 

Building mcuboot_52840dongle_overwrite
west build --build-dir /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite/build_nrf52dongle /Users/quark11/Documents/2024_dfu_projects/mcuboot_52840dongle_overwrite

[1/172] Preparing syscall dependency handling

[1/206] Preparing syscall dependency handling

[4/206] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[206/206] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       48100 B        64 KB     73.39%
             RAM:       29464 B       256 KB     11.24%
        IDT_LIST:          0 GB        32 KB      0.00%
[8/172] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[161/172] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       39600 B     982528 B      4.03%
             RAM:       16640 B       256 KB      6.35%
        IDT_LIST:          0 GB        32 KB      0.00%
[167/172] Generating ../../zephyr/app_update.bin
image.py: sign the payload
[168/172] Generating ../../zephyr/app_signed.hex
image.py: sign the payload
[170/172] Generating ../../zephyr/app_test_update.hex
image.py: sign the payload
[172/172] Generating zephyr/merged.hex
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476951?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 15:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41297352-b606-4b52-888b-c86a339332d1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can take a look at my colleagues&amp;#39;s sample&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_52840dongle_overwrite"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_52840dongle_overwrite&lt;/a&gt;&amp;nbsp;&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><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476720?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 02:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6c76d68-35eb-44d8-a11b-8b9b50b6332c</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;&lt;br /&gt;Thank you. &lt;br /&gt;&lt;br /&gt;With the larger partition size for MCUBOOT, I&amp;#39;m able to build MCUBoot versions of ble_peripheral_lbs for both the particle_xenon and nrf52840dongle&amp;nbsp;boards (using NCS 2.6.0).&lt;br /&gt;&lt;br /&gt;However, only the ble_peripheral_lbs for the particle_xenon board runs successfully. It looks like the ble_peripheral_lbs for the &lt;span&gt;nrf52840dongle&lt;/span&gt; isn&amp;#39;t being executed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;For the nrf52840dongle, I&amp;#39;ve used the signed &amp;quot;app_update.bin&amp;quot; and then flashed&amp;nbsp;it&amp;nbsp;to the MCUboot serial port using &lt;/span&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;&lt;span style="font-family:inherit;"&gt;MCUmgr.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr --conntype=serial --connstring=&amp;#39;dev=/dev/cu.usbmodem14101,baud=115200&amp;#39; &amp;#160;\
image upload -e /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/app_update.bin&amp;#160;

mcumgr --conntype=serial --connstring=&amp;#39;dev=/dev/cu.usbmodem14101,baud=115200&amp;#39; reset

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;The flash to the nrf52840dongle is successful but code doesn&amp;#39;t execute.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;I&amp;#39;ve built a&amp;nbsp;couple of other MCUBoot samples, &amp;quot;blinky&amp;quot; and &amp;quot;button&amp;quot; from &amp;quot;zephyr/samples/basic&amp;quot;. Again, the&amp;nbsp;builds are successful but none of them execute when flashed to the nrf52840dongle.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Clearly, I&amp;#39;m likely missing some step(s) or&amp;nbsp;configuration.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;In the past, I have built and run MCUBoot versions on the nrf52840dongle but that was done from the command line and not built using NCS for VSCode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Is the issue&amp;nbsp;to do with the application&amp;nbsp;somehow not being signed correctly by MCUBoot, leading to the app not being executed? &amp;nbsp;If so, What&amp;#39;s the solution? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476675?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 15:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ee9bc3-8552-4ac4-8d2b-2b4c03ac5c57</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can add &amp;quot;-Dmcuboot_CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000&amp;quot; to the Extra CMake arguments.&amp;nbsp;&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/pastedimage1712073198251v1.png" alt=" " /&gt;&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: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476414?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 02:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00ebc23a-65f9-4193-bd67-133ff18ba196</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Your suggestion worked. I was able to successfully build and run the MCUboot build for the Particle Xenon board with NCS 2.6.0. Also copied &amp;amp; renamed partitions.yml to pm_static.yml in the app folder.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve run into MCUBoot &amp;quot;region &amp;#39;FLASH&amp;#39; overflowed&amp;quot; issue when I tried building the same ble_peripheral_lbs sample for nrf52840dongle_nrf52840.&lt;br /&gt;&lt;br /&gt;For the nrf52840dongle, I&amp;#39;m using stab-stock as I have the nRF5 bootloader on it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t quite&amp;nbsp;see why&amp;nbsp;the FLASH has overflowed? The nRF52840 has 1MB Flash.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Do I need to adjust&amp;nbsp;the memory map manually in pm_static.yml? Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
 *  Executing task: nRF Connect: Build [pristine]: ble_peripheral_lbs/build_nrf52dongle (active) 

Building ble_peripheral_lbs
west build --build-dir /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs --pristine --board nrf52840dongle_nrf52840 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -Dmcuboot_CONF_FILE=/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/child_image/mcuboot/boards/nrf52840dongle_nrf52840.conf -Dmcuboot_DTC_OVERLAY_FILE=/opt/nordic/ncs/v2.6.0/nrf/modules/mcuboot/usb.overlay -Dmcuboot_OVERLAY_CONFIG=/opt/nordic/ncs/v2.6.0/nrf/subsys/partition_manager/partition_manager_enabled.conf -DCACHED_CONF_FILE=/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/prj.conf

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Generated zephyr.dts: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/dts.cmake
Parsing /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/prj.conf&amp;#39;
Configuration saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.


-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/quark11/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Found devicetree overlay: /opt/nordic/ncs/v2.6.0/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.6.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/child_image/mcuboot/boards/nrf52840dongle_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.6.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /opt/nordic/ncs/v2.6.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
MCUBoot bootloader key file: /opt/nordic/ncs/v2.6.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



-- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
CMake Warning at /opt/nordic/ncs/v2.6.0/nrf/cmake/partition_manager.cmake:79 (message):
  

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------
          

Call Stack (most recent call first):
  /opt/nordic/ncs/v2.6.0/zephyr/cmake/modules/kernel.cmake:248 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle
-- west build: building application
[1/310] Preparing syscall dependency handling

[4/310] Generating include/generated/app_version.h
-- git describe failed: fatal: not a git repository (or any of the parent directories): .git
[8/310] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[1/189] Preparing syscall dependency handling

[4/189] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[184/189] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/zephyr_pre0.map 
: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/picolibc/liblib__libc__picolibc.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/nordic_nrf/libsoc__arm__nordic_nrf.a  zephyr/boards/boards/arm/nrf52840dongle_nrf52840/libboards__arm__nrf52840dongle_nrf52840.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L&amp;quot;/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard&amp;quot;  -L/Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -mtp=soft  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  -DPICOLIBC_DOUBLE_PRINTF_SCANF  /opt/nordic/ncs/v2.6.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  --specs=picolibc.specs  -lc  -lgcc  /opt/nordic/ncs/v2.6.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a &amp;amp;&amp;amp; cd /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake -E true
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text&amp;#39; will not fit in region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 8876 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[290/310] Linking C static library zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/libsubsys__mgmt__mcumgr__grp__img_mgmt.a
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/zephyr.hex /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot/zephyr/zephyr.elf 
cd /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle/mcuboot &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake --build . --
[293/310] Building C object CMakeFiles/app.dir/src/main.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake --build /Users/quark11/Documents/2024_dfu_projects/ble_peripheral_lbs/build_nrf52dongle

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&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: nRF52840 with MCUBoot NCS 2.6.0 fails to build</title><link>https://devzone.nordicsemi.com/thread/476308?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 19:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66556976-ec0c-48fc-b038-e09311c277ff</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Due to the Easter holidays in Norway, we are less staffed than usual.&amp;nbsp;You can expect a delayed answer.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
[quote user=""]Is this because I&amp;#39;m using a bootloader without a &lt;strong&gt;pm_static.yml&lt;/strong&gt; file?[/quote]
&lt;p&gt;&lt;span&gt;The problem&amp;nbsp;appears that &amp;#39;CONFIG_MULTITHREADING&amp;#39; and &amp;#39;CONFIG_SPI_NOR&amp;#39; are not enabled for the MCUBoot build. To fix this, you can create a folder named &amp;#39;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;child_image&lt;/a&gt;&lt;span&gt;&amp;#39; in your project and add the necessary Kconfig&amp;nbsp;file for the bootloader. Attached is an example that enables these symbols for the bootloader.&lt;/span&gt;&lt;/p&gt;
[quote user=""]Do I need to create a pm_static.yml with partitions info from the board’s devicetree overlay and add the yml file to the project?[/quote]
&lt;p&gt;&lt;span&gt;The partition manager would generate&amp;nbsp;&lt;/span&gt;&lt;span&gt;partitions.yml automatically without pm_static.yml.&amp;nbsp;&lt;/span&gt;&lt;span&gt;You could duplicate the&amp;nbsp;partitions.yml under the build folder, rename it to&amp;nbsp;&lt;/span&gt;&lt;span&gt;pm_static.yml, and put it under the app for the next build.&amp;nbsp;&lt;/span&gt;See&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu"&gt;Static&amp;nbsp;partition&amp;nbsp;requirement&amp;nbsp;for&amp;nbsp;DFU&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>