Hi, when I try to build non secure boards several Kconfig errors provoke a Fatal error. I didn't have these type of errors until I updated to the 1.8.0 SDK, however the error also appears when using 1.7.0 so maybe something in the new Kconfig update mess the configurations. I use
- Visual Studio Code
- MacOS
- nrf9160dk_nrf9160_ns
I add the terminal output
Kconfig header saved to '/Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/v1.7.0/toolchain/bin/arm-none-eabi-gcc Changed board to secure nrf9160dk_nrf9160 (NOT NS) === child image spm - begin === Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake -- Application: /opt/nordic/ncs/v1.7.0/nrf/samples/spm CMake Deprecation Warning at /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/CMakeLists.txt:8 (find_package) -- Zephyr version: 2.6.99 (/opt/nordic/ncs/v1.7.0/zephyr), build: v2.6.99-ncs1 -- Found Python3: /usr/local/bin/python3.9 (found suitable exact version "3.9.7") found components: Interpreter -- Board: nrf9160dk_nrf9160, Revision: 0.7.0 -- Cache files will be written to: /Users/mac/Library/Caches/zephyr -- Found dtc: /opt/nordic/ncs/v1.7.0/toolchain/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.7.0/toolchain) -- Found BOARD.dts: /opt/nordic/ncs/v1.7.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts -- Found devicetree overlay: /opt/nordic/ncs/v1.7.0/nrf/samples/spm/nrf9160dk_nrf9160.overlay /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/nrf9160dk_nrf9160.dts.pre.tmp:15.39-20.5: Warning (interrupt_provider): /soc/interrupt-controller@e000e100: Missing #address-cells in interrupt provider also defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/nrf9160dk_nrf9160.dts.pre.tmp:398.7-400.3 -- Generated zephyr.dts: /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/dts.cmake warning: NRFX_UARTE2 (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/modules/hal_nordic/nrfx/Kconfig:366) was assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: 0 (=n). See http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NRFX_UARTE2.html and/or look up NRFX_UARTE2 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/v1.7.0/zephyr/Kconfig Loaded configuration '/opt/nordic/ncs/v1.7.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig' Merged configuration '/opt/nordic/ncs/v1.7.0/nrf/samples/spm/prj.conf' Merged configuration '/opt/nordic/ncs/v1.7.0/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf' Merged configuration '/opt/nordic/ncs/v1.7.0/nrf/subsys/partition_manager/partition_manager_enabled.conf' Merged configuration '/Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/misc/generated/extra_kconfig_options.conf' /opt/nordic/ncs/v1.7.0/nrf/samples/spm/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol NCS_SAMPLES_DEFAULTS /opt/nordic/ncs/v1.7.0/nrf/samples/spm/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol IS_SPM /opt/nordic/ncs/v1.7.0/nrf/samples/spm/prj.conf:9: warning: attempt to assign the value 'y' to the undefined symbol FW_INFO /opt/nordic/ncs/v1.7.0/nrf/subsys/partition_manager/partition_manager_enabled.conf:7: warning: attempt to assign the value 'y' to the undefined symbol PARTITION_MANAGER_ENABLED /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/misc/generated/extra_kconfig_options.conf:2: warning: attempt to assign the value 'y' to the undefined symbol SPM_SECURE_SERVICES /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/misc/generated/extra_kconfig_options.conf:3: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_FIND_FIRMWARE_INFO /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/misc/generated/extra_kconfig_options.conf:4: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_READ /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/spm/zephyr/misc/generated/extra_kconfig_options.conf:5: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_RNG warning: HAS_NRFX (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/modules/hal_nordic/nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols: - SOC_SERIES_NRF91X (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/soc/arm/nordic_nrf/nrf91/Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y) warning: NRFX_CLOCK (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/modules/hal_nordic/nrfx/Kconfig:14) has direct dependencies HAS_HW_NRF_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - CLOCK_CONTROL_NRF (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y) warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/modules/hal_nordic/nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/drivers/clock_control/Kconfig.nrf:36), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y) error: Aborting due to Kconfig warnings -- Configuring incomplete, errors occurred! CMake Error at /opt/nordic/ncs/v1.7.0/zephyr/cmake/kconfig.cmake:268 (message): command failed with return code: 1 Call Stack (most recent call first): /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:554 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) /Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/CMakeLists.txt:8 (find_package) CMake Error at /opt/nordic/ncs/v1.7.0/nrf/cmake/multi_image.cmake:301 (message): CMake generation for spm failed, aborting. Command: 1 Call Stack (most recent call first): /opt/nordic/ncs/v1.7.0/nrf/cmake/multi_image.cmake:68 (add_child_image_from_source) /opt/nordic/ncs/v1.7.0/nrf/samples/CMakeLists.txt:58 (add_child_image) -- Configuring incomplete, errors occurred! See also "/Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/CMakeFiles/CMakeOutput.log". See also "/Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1/CMakeFiles/CMakeError.log". FATAL ERROR: command exited with status 1: /opt/nordic/ncs/v1.7.0/toolchain/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/v1.7.0/toolchain/opt/[email protected]/bin/python3.9 -B/Users/mac/Documents/Nordic/OtherApps/blinky_a/build_1 -S/Users/mac/Documents/Nordic/OtherApps/blinky_a -GNinja -DBOARD=nrf9160dk_nrf9160_ns -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE The terminal process terminated with exit code: 1.
Thanks in advance