This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CMake Error after NRF SDK updated

Hi all,

My project can be built and run correctly on NRF SDK 1.5.0,

after updated to SDK 1.6.1 and rebuild, it failed and messages below:

Creating solution peripheral_lbs.emProject
D:/nrf_v161/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\nrf_v161\v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\nrf_v161\v1.6.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs
-- Zephyr version: 2.6.0-rc1 (D:/nrf_v161/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
-- Found Python3: D:/nrf_v161/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")
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.6.1 for building. (D:/nrf_v161/v1.6.1/toolchain/cmake)
CMake Error at D:/nrf_v161/v1.6.1/zephyr/cmake/zephyr_module.cmake:61 (message):
  Unmet or cyclic dependencies in modules:

  D:/nrf_v161/v1.6.1/nrfxlib depends on: ['hal_nordic']

  D:/nrf_v161/v1.6.1/modules/lib/matter depends on: ['nrfxlib']

  

Call Stack (most recent call first):
  D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake:183 (include)
  D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:8 (find_package)



error: cmake failed
create_nordic_project.py failed (1)
Is there any idea for this error?

Thanks a lot. 

Related