Dear ,
I use toolchain Manager to install the whole project.
Would you teach me how to solve this ?
Dear ,
I use toolchain Manager to install the whole project.
Would you teach me how to solve this ?
Hello,
The error will present itself in the output tab in SES. Please provide details on what is failing and what project you are trying to run.
Kind regards,
Øyvind
Creating solution peripheral_lbs.emProject D:/Arrow/Nordic/nRF5340/v1.9.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\Arrow\Nordic\nRF5340\v1.9.0\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\Arrow\Nordic\nRF5340\v1.9.0\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\Arrow\Nordic\nRF5340\v1.9.0\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.9.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\Arrow\Nordic\nRF5340\v1.9.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py -- Application: D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs -- Zephyr version: 2.7.99 (D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr), build: v2.7.99-ncs1 -- Found Python3: D:/Arrow/Nordic/nRF5340/v1.9.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.12.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp -- Cache files will be written to: D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/.cache -- Found dtc: D:/Arrow/Nordic/nRF5340/v1.9.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (D:/Arrow/Nordic/nRF5340/v1.9.0/toolchain/opt) -- Found BOARD.dts: D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts -- Generated zephyr.dts: D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/dts.cmake Parsing D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/Kconfig Loaded configuration 'D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration 'D:/Arrow/Nordic/nRF5340/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/prj.conf' -- Configuring incomplete, errors occurred! Including boilerplate (Zephyr base): D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/cmake/app/boilerplate.cmake -- Using NCS Toolchain 1.9.0 for building. (D:/Arrow/Nordic/nRF5340/v1.9.0/toolchain/cmake) warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at D:/Arrow/Nordic/nRF5340/v1.9.0/nrf\lib\nrf_modem_lib\Kconfig.modemlib:97) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined) 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_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (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_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y) warning: NRFX_CLOCK (defined at 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 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 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 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) warning: NRFX_DPPI (defined at modules\hal_nordic\nrfx/Kconfig:26, drivers/serial/Kconfig.nrfx:385) has direct dependencies (HAS_HW_NRF_DPPIC && HAS_NRFX && 0) || (HAS_HW_NRF_DPPIC && (UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC || UART_3_NRF_HW_ASYNC) && UART_NRFX && SERIAL) with value n, but is currently being y-selected by the following symbols: - UART_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx:398), with value y, direct dependencies (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y), and select condition HAS_HW_NRF_DPPIC && (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y) warning: NRFX_GPIOTE (defined at modules\hal_nordic\nrfx/Kconfig:65) has direct dependencies HAS_HW_NRF_GPIOTE && 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 SOC_FAMILY_NRF && GPIO (value: y), and select condition SOC_FAMILY_NRF && GPIO (value: y) warning: NRFX_IPC (defined at modules\hal_nordic\nrfx/Kconfig:81) has direct dependencies HAS_HW_NRF_IPC && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - IPM_NRFX (defined at D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/boards/arm/nrf5340dk_nrf5340/Kconfig:6, drivers/ipm/Kconfig:71), with value y, direct dependencies y (value: y), and select condition HAS_HW_NRF_IPC && IPM (value: y) warning: NRFX_NVMC (defined at modules\hal_nordic\nrfx/Kconfig:95) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols: - SOC_FLASH_NRF (defined at drivers/flash/Kconfig.nrf:10), with value y, direct dependencies SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y), and select condition SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y) error: Aborting due to Kconfig warnings CMake Error at D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/cmake/kconfig.cmake:272 (message): command failed with return code: 1 Call Stack (most recent call first): D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/cmake/app/boilerplate.cmake:544 (include) D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) D:/Arrow/Nordic/nRF5340/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:12 (find_package) error: cmake failed create_nordic_project.py failed (1)
Dear Øyvind,
I copied and pasted output for your reference.
Dear
I re-install the windows10 and tried again using cmd.exe.
it show error below:
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja
I also tried to use installing manually,but I found that I can't install GN meta-build system.
Becaues I can't open https://gn.googlesource.com/gn/#getting-a-binary in China.
This maybe the problem.
Hello,
I'm very confused at the moment.
The initial issue is building peripheral_lbs sample for the nRF5340DK. Correct?
In the beginning you were using v1.9.0 of the nRF Connect SDK, but last messages you have reverted to v1.6.1. Please elaborate.
liujirong888 said:I also tried to use installing manually,but I found that I can't install GN meta-build system.
Becaues I can't open https://gn.googlesource.com/gn/#getting-a-binary in China.
This is not needed in the peripheral_lbs sample.
liujirong888 said:FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja
What samples did you try to build here? Please provide full build log.
Thanks.
Kind regards,
Øyvind
Dear ,
I found that v1.9.0 and v1.6.0 have same error.
both SDK I need to use.Attached build log for your reference.
C:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs>west build -b nrf5340dk_nrf5340_cpuapp -- west build: generating a build system Including boilerplate (Zephyr base): C:/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake CMake Deprecation Warning at C:/ncs/v1.6.1/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): C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Application: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs -- Using NCS Toolchain 1.6.1 for building. (D:/ncs/v1.6.1/toolchain/cmake) -- Zephyr version: 2.6.0-rc1 (C:/ncs/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1 -- Found Python3: D:/ncs/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.11.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp -- Cache files will be written to: C:/ncs/v1.6.1/zephyr/.cache -- Found dtc: D:/ncs/v1.6.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (D:/ncs/v1.6.1/toolchain/opt) -- Found BOARD.dts: C:/ncs/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts -- Generated zephyr.dts: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/device_extern.h warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/ncs/v1.6.1/nrf\lib\nrf_modem_lib/Kconfig:71) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined) warning: MBEDTLS_SHA1_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls.defconfig:9, C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:1) defined without a type warning: MBEDTLS_SHA512_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:4) defined without a type warning: MBEDTLS_TLS_LIBRARY (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:9) defined without a type warning: MBEDTLS_X509_LIBRARY (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:12) defined without a type warning: MBEDTLS_DHM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:18) defined without a type warning: MBEDTLS_ECP_C (defined at C:Parsing C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/Kconfig Loaded configuration 'C:/ncs/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration 'C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf' /ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:21) defined without a type warning: MBEDTLS_HMAC_DRBG_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:24) defined without a type warning: MBEDTLS_CIPHER_MODE_CBC (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:27) defined without a type warning: MBEDTLS_CIPHER_MODE_CTR (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:30) defined without a type warning: MBEDTLS_CMAC_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:33) defined without a type warning: MBEDTLS_CCM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:36) defined without a type warning: MBEDTLS_GCM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:39) defined without a type warning: MBEDTLS_CHACHA20_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:42) defined without a type warning: MBEDTLS_POLY1305_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:45) defined without a type warning: MBEDTLS_PSA_CRYPTO_STORAGE_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:48) defined without a type warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined with type unknown warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined without a prompt warning: the default selection CC3XX_ATOMIC_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice warning: the default selection CC3XX_HW_MUTEX_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) defined with type unknown warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) defined without a prompt warning: the default selection MEMFAULT_HTTP_PERIODIC_UPLOAD_USE_DEDICATED_WORKQUEUE (undefined) of <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) is not contained in the choice error: Aborting due to Kconfig warnings CMake Error at C:/ncs/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message): command failed with return code: 1 Call Stack (most recent call first): C:/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build' '-SC:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp C:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs>
Dear Øyvind,
I mean that when I use SES or VS code error will show that create_nordic_project.py failed.
when I change to use cmd.exe to compile,it will show like this below, I use the sample "peripheral_lbs"
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja
Thanks for providing this information.
Difficult to tell what is going on. I'm not able to reproduce on my side. Can you please provide the whole project folder that you are building? What configurations have you added? Please provide information from NCS v1.6.0 to narrow down issue.
Thanks.
Thanks for providing this information.
Difficult to tell what is going on. I'm not able to reproduce on my side. Can you please provide the whole project folder that you are building? What configurations have you added? Please provide information from NCS v1.6.0 to narrow down issue.
Thanks.