MCUBOOT + NCS 3.0.1 + Snippets won't compile

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 the Dev Academy Lesson 9 Exercise 3 to add DFU with external flash.  

The compile for mcuboot fails, because it can't find the snippets.  The snippets are for the application code, not mcuboot.

Compiler log:

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: C:/ncs/v3.0.1/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Snippet(s): ci debug mtd logging
Parsing d:/WS_GC/sensor/Kconfig.sysbuild
Loaded configuration 'D:/WS_GC/sensor/build_dk/_sysbuild/empty.conf'
Merged configuration 'd:/WS_GC/sensor/sysbuild.conf'
Configuration saved to 'D:/WS_GC/sensor/build_dk/zephyr/.config'
Kconfig header saved to 'D:/WS_GC/sensor/build_dk/_sysbuild/autoconf.h'
-- 
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: C:/ncs/v3.0.1/zephyr/.cache
-- Zephyr version: 4.0.99 (C:/ncs/v3.0.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
CMake Error at C:/ncs/v3.0.1/zephyr/cmake/modules/snippets.cmake:97 (message):
    snippets: error: snippets not found: ci, debug, logging, mtd
    Please choose from among the following snippets:
      bt-ll-sw-split
      cdc-acm-console
      ci-shell
      diagnostic-logs
      hpf-gpio-icbmsg
      hpf-gpio-icmsg
      hpf-gpio-mbox
      hpf-mspi
      hw-flow-control
      matter-debug
      nordic-bt-rpc
      nordic-flpr
      nordic-flpr-xip
      nordic-log-stm
      nordic-log-stm-dict
      nordic-ppr
      nordic-ppr-xip
      nrf54l09-switch-uart
      nrf70-driver-debug
      nrf70-driver-verbose-debug
      nrf70-fw-patch-ext-flash
      nrf70-wifi
      nrf91-modem-trace-ext-flash
      nrf91-modem-trace-ram
      nrf91-modem-trace-rtt
      nrf91-modem-trace-uart
      nus-console
      power-consumption-tests
      ram-console
      rtt-console
      rtt-tracing
      serial-console
      tfm-enable-share-uart
      wifi-enterprise
      wifi-ipv4
      wpa-supplicant-debug
      xen_dom0
      zperf

Call Stack (most recent call first):
  C:/ncs/v3.0.1/zephyr/cmake/modules/snippets.cmake:126 (zephyr_process_snippets)
  C:/ncs/v3.0.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:18 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: mcuboot

  Location: C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:21 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  C:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!

How can I use snippets for the application only, and not mcuboot?
Or do I have to merge them into prj.conf?

Mary

Parents Reply Children
No Data
Related