Hello, I recently installed nrf sdk but I have trouble getting through getting started phase. I'm using ubuntu 24.04 and created workspace environment using CLI.
Below is both my command and output:
$ west build -p always --board reel_board zephyr/samples/hello_world -- west build: generating a build system Loading Zephyr module(s) (Zephyr base): sysbuild_default -- Found Python3: /home/tmvkrpxl0/.local/share/pipx/venvs/west/bin/python (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter -- Cache files will be written to: /home/tmvkrpxl0/.cache/zephyr -- Found west (found suitable version "1.3.0", minimum required is "0.14.0") -- Board: reel_board, Revision: 1, qualifiers: nrf52840 Parsing /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild/Kconfig Loaded configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/_sysbuild/empty.conf' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/_sysbuild/empty.conf' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/_sysbuild/empty.conf' Configuration saved to '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/zephyr/.config' Kconfig header saved to '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/_sysbuild/autoconf.h' -- ********************************* * Running CMake for hello_world * ********************************* Loading Zephyr default modules (Zephyr base). -- Application: /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/samples/hello_world -- CMake version: 3.30.5 -- Found Python3: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter -- Cache files will be written to: /home/tmvkrpxl0/.cache/zephyr -- Zephyr version: 4.0.99 (/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr) -- Board: reel_board, Revision: 1, qualifiers: nrf52840 -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK -- Found host-tools: zephyr 0.17.0 (/home/tmvkrpxl0/zephyr-sdk-0.17.0) -- Found toolchain: zephyr 0.17.0 (/home/tmvkrpxl0/zephyr-sdk-0.17.0) -- Found Dtc: /home/tmvkrpxl0/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found BOARD.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/boards/phytec/reel_board/reel_board.dts -- Generated zephyr.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/zephyr.dts -- Generated pickled edt: /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/edt.pickle -- Generated zephyr.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/zephyr.dts -- Generated devicetree_generated.h: /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/include/generated/zephyr/devicetree_generated.h -- Including generated dts.cmake file: /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/dts.cmake /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/.config.sysbuild:2: warning: attempt to assign the value 'y' to the undefined symbol PARTITION_MANAGER_ENABLED /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/.config.sysbuild:5: warning: attempt to assign the value 'n' to the undefined symbol BT_FAST_PAIR /home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/.config.sysbuild:7: warning: attempt to assign the value 'n' to the undefined symbol CHIP warning: HAS_NORDIC_DRIVERS (defined at modules/hal_nordic/Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols: - SOC_SERIES_NRF52X (defined at soc/nordic/Kconfig.soc:30, soc/nordic/nrf52/Kconfig.soc:6, soc/nordic/nrf52/Kconfig:6), with value y, direct dependencies y (value: y), and select condition SOC_FAMILY_NORDIC_NRF (value: y) warning: HAS_CMSIS_CORE (defined at modules/cmsis/Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols: - CPU_CORTEX_M (defined at arch/arm/core/Kconfig:6), with value y, direct dependencies ARM (value: y), and select condition ARM (value: y) warning: CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK (defined at soc/nxp/imxrt/imxrt6xx/Kconfig.defconfig:8, modules/cmsis/Kconfig:31) has direct dependencies (SOC_SERIES_IMXRT6XX && SOC_FAMILY_NXP_IMXRT) || (HAS_CMSIS_CORE && 0) with value n, but is currently being y-selected by the following symbols: - SOC_FAMILY_NORDIC_NRF (defined at soc/nordic/Kconfig.soc:19, soc/nordic/Kconfig:9), with value y, direct dependencies y (value: y), and select condition ARM (value: y) warning: HAS_NRFX (defined at 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_NRF52X (defined at soc/nordic/Kconfig.soc:30, soc/nordic/nrf52/Kconfig.soc:6, soc/nordic/nrf52/Kconfig:6), with value y, direct dependencies y (value: y), and select condition SOC_FAMILY_NORDIC_NRF (value: y) warning: NRFX_CLOCK (defined at modules/hal_nordic/nrfx/Kconfig:16) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies DT_HAS_NORDIC_NRF_CLOCK_ENABLED && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && DT_HAS_NORDIC_NRF_CLOCK_ENABLED && CLOCK_CONTROL (value: y) warning: NRFX_GPIOTE0 (defined at modules/hal_nordic/nrfx/Kconfig:171) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies DT_HAS_NORDIC_NRF_GPIO_ENABLED && GPIO (value: y), and select condition HAS_HW_NRF_GPIOTE0 && DT_HAS_NORDIC_NRF_GPIO_ENABLED && GPIO (value: y) warning: NRFX_GPPI (defined at modules/hal_nordic/nrfx/Kconfig:209) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - UART_1_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx_uart_instance:21), with value y, direct dependencies !n && HAS_HW_NRF_UARTE1 && (HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC) && HAS_HW_NRF_UARTE1 && UART_NRFX && SERIAL (value: y), and select condition !n && HAS_HW_NRF_UARTE1 && (HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC) && HAS_HW_NRF_UARTE1 && UART_NRFX && SERIAL (value: y) warning: NRFX_TWIM0 (defined at modules/hal_nordic/nrfx/Kconfig:844) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - I2C_NRFX_TWIM (defined at drivers/i2c/Kconfig.nrfx:23), with value y, direct dependencies DT_HAS_NORDIC_NRF_TWIM_ENABLED && I2C_NRFX && I2C (value: y), and select condition HAS_HW_NRF_TWIM0 && DT_HAS_NORDIC_NRF_TWIM_ENABLED && I2C_NRFX && I2C (value: y) warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules/hal_nordic/nrfx/Kconfig:20) 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 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 Parsing /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/Kconfig Loaded configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/boards/phytec/reel_board/reel_board_defconfig' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/samples/hello_world/prj.conf' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/build/hello_world/zephyr/.config.sysbuild' CMake Error at /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/cmake/modules/kconfig.cmake:396 (message): command failed with return code: 1 Call Stack (most recent call first): /home/tmvkrpxl0/CLionProjects/ncs-workspace/nrf/cmake/modules/kconfig.cmake:29 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/cmake/modules/zephyr_default.cmake:133 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message): CMake configure failed for Zephyr project: hello_world Location: /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/samples/hello_world Call Stack (most recent call first): cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake) cmake/modules/sysbuild_default.cmake:21 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include) template/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/tmvkrpxl0/.local/share/pipx/venvs/west/bin/python -B/home/tmvkrpxl0/CLionProjects/ncs-workspace/build -GNinja -DBOARD=reel_board -S/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/samples/hello_world
I'm not sure of NRF sdk version since workspace should use one its own. Since I didn't specify it I think it should be today's latest one.
I do have zephyr-sdk-0.17.0 directory in my home directory though.
I'm using west 1.3.0 from my system although it's included in the toolchain. I'm not running the west in the nrf shell as I already have one in my system. Could that be an issue? I already tried running it inside nrf shell but it fails with python error, as my project for some reason required at least python 3.10 when the toolchain uses 3.8. I have python 3.12 installed on my system so that error only occurs in the nrf shell.
I didn't change any settings. and the menuconfig command fails with same error.
Speaking of configs, the hello_world example has empty prj.conf file. I think all the config values that causes warnings above are built-in and not from my project.
I've also tried blinky example. It has less Kconfig warnings? Below is its log:
$ west build --pristine --board rpi_4b -t menuconfig -- -DNCS_TOOLCHAIN_VERSION=NONE -- west build: making build dir /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build pristine -- west build: generating a build system Loading Zephyr module(s) (Zephyr base): sysbuild_default -- Found Python3: /home/tmvkrpxl0/.local/share/pipx/venvs/west/bin/python (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter -- Cache files will be written to: /home/tmvkrpxl0/.cache/zephyr -- Found west (found suitable version "1.3.0", minimum required is "0.14.0") -- Board: rpi_4b, qualifiers: bcm2711 Parsing /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild/Kconfig Loaded configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/_sysbuild/empty.conf' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/_sysbuild/empty.conf' Configuration saved to '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/zephyr/.config' Kconfig header saved to '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/_sysbuild/autoconf.h' -- **************************** * Running CMake for blinky * **************************** Loading Zephyr default modules (Zephyr base). -- Application: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky -- CMake version: 3.30.5 -- Found Python3: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter -- Cache files will be written to: /home/tmvkrpxl0/.cache/zephyr -- Zephyr version: 4.0.99 (/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr) -- Board: rpi_4b, qualifiers: bcm2711 -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK -- Found host-tools: zephyr 0.17.0 (/home/tmvkrpxl0/zephyr-sdk-0.17.0) -- Found toolchain: zephyr 0.17.0 (/home/tmvkrpxl0/zephyr-sdk-0.17.0) -- Found Dtc: /home/tmvkrpxl0/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found BOARD.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/boards/raspberrypi/rpi_4b/rpi_4b.dts -- Generated zephyr.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/zephyr.dts -- Generated pickled edt: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/edt.pickle -- Generated zephyr.dts: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/zephyr.dts -- Generated devicetree_generated.h: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/include/generated/zephyr/devicetree_generated.h -- Including generated dts.cmake file: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/dts.cmake /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/.config.sysbuild:2: warning: attempt to assign the value 'n' to the undefined symbol PARTITION_MANAGER_ENABLED /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/.config.sysbuild:5: warning: attempt to assign the value 'n' to the undefined symbol BT_FAST_PAIR /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/.config.sysbuild:7: warning: attempt to assign the value 'n' to the undefined symbol CHIP error: Aborting due to Kconfig warnings Parsing /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/Kconfig Loaded configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/boards/raspberrypi/rpi_4b/rpi_4b_defconfig' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/prj.conf' Merged configuration '/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build/blinky/zephyr/.config.sysbuild' CMake Error at /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/cmake/modules/kconfig.cmake:396 (message): command failed with return code: 1 Call Stack (most recent call first): /home/tmvkrpxl0/CLionProjects/ncs-workspace/nrf/cmake/modules/kconfig.cmake:29 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/cmake/modules/zephyr_default.cmake:133 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message): CMake configure failed for Zephyr project: blinky Location: /home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky Call Stack (most recent call first): cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake) cmake/modules/sysbuild_default.cmake:21 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) /home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include) template/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/tmvkrpxl0/.local/share/pipx/venvs/west/bin/python -B/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky/build -GNinja -DBOARD=rpi_4b -DNCS_TOOLCHAIN_VERSION=NONE -S/home/tmvkrpxl0/CLionProjects/ncs-workspace/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/tmvkrpxl0/CLionProjects/ncs-workspace/blinky
Although I'm planning to make application for nrf21540dk/nrf52840, I currently don't have it as target, as I can't configure basic project setup. I am just trying out some popular boards that I think would have good official support first so I can reliably try things out.