I have been facing a persistent Zephyr CMake/Kconfig build failure in my nRF Connect SDK setup.
Environment: Windows, nRF Connect SDK v2.7.0, Toolchain v2.7.0, using VS Code nRF extension.
My project (my_adc_blink_new) builds fine until CMake throws the following error:
CMake Error at C:/ncs/v2.7.0/zephyr/cmake/modules/kconfig.cmake:392 (message):
command failed with return code: 1
The detailed logs show that Zephyr cannot find the board configuration for nrf52840dk_nrf52840 or even nrf52840dk.
The actual path C:\ncs\v2.7.0\zephyr\boards\arm\nrf52840dk_nrf52840 and its files (like nrf52840dk_nrf52840_defconfig) are missing from my SDK installation.
I tried west update, west init -l nrf, dummy board files, and SoC-only builds (-b nrf52840)—but the kconfig.cmake error persists because the Zephyr tree is incomplete.