I am working on some teching modules covering MCUBoot and DFU ... and trying to get the
basic examples built for an nRF52840 DK board ... and am running into an error along the lines of
peripheral_secure:9: error: couldn't parse 'depends on $(peripheral_depends)': macro expanded to blank string
Here are the traces ... any help would be greatly appreciated ...
Thanks in advance
Andrew
PS C:\ncs> west build -b nrf52840dk_nrf52840 -p=auto --force .\bootloader\mcuboot\samples\zephyr\hello-world\
-- west build: making build dir C:\ncs\build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/ncs/bootloader/mcuboot/samples/zephyr/hello-world
-- Zephyr version: 2.7.99 (C:/ncs/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: C:/Anaconda3/python.exe (found suitable exact version "3.9.7") found components: Interpreter
-- Found west (found suitable version "0.13.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: C:/ncs/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
-- Found BOARD.dts: C:/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: C:/ncs/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/ncs/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/ncs/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/ncs/build/zephyr/dts.cmake
Parsing C:/ncs/zephyr/Kconfig
C:/ncs/zephyr/scripts/kconfig/kconfig.py: C:/ncs/nrf\subsys\nonsecure\Kconfig.template.peripheral_secure:9: error: couldn't parse 'depends on $(peripheral_depends)': macro expanded to blank string
CMake Error at C:/ncs/zephyr/cmake/kconfig.cmake:272 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/zephyr/cmake/app/boilerplate.cmake:544 (include)
C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:16 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Anaconda3\python.exe' '-BC:\ncs\build' '-SC:\ncs\bootloader\mcuboot\samples\zephyr\hello-world' -GNinja -DBOARD=nrf52840dk_nrf52840
PS C:\ncs> west build -b nrf52840dk_nrf52840 -p=auto --force -d build_mcuboot -s .\bootloader\mcuboot\boot\zephyr
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/ncs/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.7.99 (C:/ncs/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: C:/Anaconda3/python.exe (found suitable exact version "3.9.7") found components: Interpreter
-- Found west (found suitable version "0.13.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: C:/ncs/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
-- Found BOARD.dts: C:/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: C:/ncs/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: C:/ncs/build_mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/ncs/build_mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/ncs/build_mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/ncs/build_mcuboot/zephyr/dts.cmake
Parsing C:/ncs/bootloader/mcuboot/boot/zephyr/Kconfig
C:/ncs/zephyr/scripts/kconfig/kconfig.py: C:/ncs/nrf\subsys\nonsecure\Kconfig.template.peripheral_secure:9: error: couldn't parse 'depends on $(peripheral_depends)': macro expanded to blank string
CMake Error at C:/ncs/zephyr/cmake/kconfig.cmake:272 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/zephyr/cmake/app/boilerplate.cmake:544 (include)
C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:44 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Anaconda3\python.exe' '-BC:\ncs\build_mcuboot' '-SC:\ncs\bootloader\mcuboot\boot\zephyr' -GNinja -DBOARD=nrf52840dk_nrf52840