SDK: 2.1.0 and 2.0.2
Machine: Macbook Pro M1
I have an issue when building with CONFIG_BOOTLOADER_MCUBOOT=y
pt/nordic/ncs/v2.1.0/zephyr/scripts/kconfig/kconfig.py: /opt/nordic/ncs/v2.1.0/bootloader/mcuboot/boot/zephyr/Kconfig:11: '/modules/mcuboot/boot/zephyr/Kconfig' not found (in 'source "$(ZEPHYR_NRF_MODULE_DIR)/modules/mcuboot/boot/zephyr/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is set to '/opt/nordic/ncs/v2.1.0/zephyr'). Also note that unset environment variables expand to the empty string. CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/kconfig.cmake:293 (message): command failed with return code: 1 Call Stack (most recent call first): /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include) /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:44 (find_package)
It looks like the build is having issues with the environment variable ZEPHYR_NRF_MODULE_DIR.
It must be tied to the MCUBoot part of the build as standard builds work fine.
This seems to get set correctly when building from the command line.
1. I already tried uninstalling and reinstalling the SDK via nRF Connect Desktop
===== EDIT =====
RE: Sudden Build Errors in Visual Studio Code
From this post here, it seems like this is a python issue.
The frist part of the build uses the ncs python 3.9
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/lcorbin/Programming/ncs_projects/smp_svr_luke
-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter
-- Cache files will be written to: /Users/lcorbin/Library/Caches/zephyr
-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
But the second use my system python 3.10
=== child image mcuboot - begin ===
loading initial cache file /Users/lcorbin/Programming/ncs_projects/smp_svr_luke/build_test/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.1.0/bootloader/mcuboot/boot/zephyr
-- Found Python3: /opt/homebrew/bin/python3.10 (found suitable exact version "3.10.8") found components: Interpreter
-- Cache files will be written to: /Users/lcorbin/Library/Caches/zephyr
-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)
-- Board: nrf52840dk_nrf52840
I have removed all python references to my path, what else could be causing the issue?