Could not find a package configuration file provided by "Zephyr-sdk" when building the configuration on VS Code

Building nrf5340_AD9833
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir d:/nrf5340_AD9833/build d:/nrf5340_AD9833"

-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): D:/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake
-- Application: D:/nrf5340_AD9833
-- Zephyr version: 2.7.99 (D:/ncs/v1.9.1/zephyr), build: v2.7.99-ncs1-1
-- 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:/ncs/v1.9.1/zephyr/.cache
CMake Error at D:/ncs/v1.9.1/zephyr/cmake/verify-toolchain.cmake:70 (find_package):
Could not find a package configuration file provided by "Zephyr-sdk"
(requested version 0.13.1) with any of the following names:

Zephyr-sdkConfig.cmake
zephyr-sdk-config.cmake

Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set
"Zephyr-sdk_DIR" to a directory containing one of the above files. If
"Zephyr-sdk" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
D:/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake:520 (include)
D:/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
D:/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'd:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=d:\ncs\v1.9.1\toolchain\opt\bin\python.exe' '-Bd:\nrf5340_AD9833\build' '-Sd:\nrf5340_AD9833' -GNinja

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

     For weeks I've tried to reinstall the SDK and toolchain again and again following the official guidance and some other tutorial documents. But this problem still exists. And I was anxiously wondering where the problem lies. 

     Your timely help is genuinely appreciated!

  • Thanks for your detailed guidance!

    When I operated "west update" in the command prompt, error occurred. And the report is as follow:

    D:\ncs\v1.9.1\nrf>west update
    === updating zephyr (zephyr):
    HEAD is now at b05b8ad63a [nrf fromtree] board: thingy53_nrf5340: Add option to set PMIC to PWM mode
    M samples/bluetooth/central_multilink/prj.conf
    M samples/bluetooth/central_multilink/src/central_multilink.c
    === updating mcuboot (bootloader/mcuboot):
    HEAD is now at 17f6d045 [nrf noup] loader: fixed the check of reset address for the net app
    D boot/cypress/libs/core-lib
    D boot/cypress/libs/cy-mbedtls-acceleration
    D boot/cypress/libs/mtb-pdl-cat1
    D boot/cypress/libs/pdl/psoc6pdl
    D boot/cypress/libs/psoc6hal
    D boot/cypress/libs/retarget-io
    D boot/espressif/hal/esp-idf
    D ext/cddl-gen
    D ext/mbedtls
    === updating mbedtls-nrf (mbedtls):
    HEAD is now at cefdd9954 [nrf noup] Add driver_wrapper call for derivation
    === updating nrfxlib (nrfxlib):
    HEAD is now at 6195aa85 doc: Version update for NCS 1.9.0
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD is now at c6667fa3 [nrf fromtree] platform: nordic_nrf: Add missing NRF_SKIP_FICR_NS_COPY_TO_RAM
    === updating tfm-mcuboot (modules/tee/tfm-mcuboot):
    HEAD is now at 4aa516e7 Bump versions for v1.7.2
    D boot/cypress/libs/core-lib
    D boot/cypress/libs/cy-mbedtls-acceleration
    D boot/cypress/libs/pdl/psoc6pdl
    D boot/cypress/libs/psoc6hal
    D boot/cypress/libs/retarget-io
    D ext/cddl_gen
    D ext/mbedtls
    === updating matter (modules/lib/matter):
    HEAD is now at ec9e7f67a [nrf noup] [SED] Review switching between polling modes - update
    D examples/common/QRCode/repo
    D examples/common/m5stack-tft/repo
    D third_party/bluez/repo
    D third_party/cirque/repo
    D third_party/cyw30739_sdk/repos/30739A0
    D third_party/cyw30739_sdk/repos/CYW930739M2EVB-01
    D third_party/cyw30739_sdk/repos/btsdk-include
    D third_party/cyw30739_sdk/repos/btsdk-tools
    D third_party/efr32_sdk/repo
    D third_party/freertos/repo
    D third_party/jsoncpp/repo
    D third_party/mbed-mcu-boot/repo
    D third_party/mbed-os-cypress-capsense-button/repo
    D third_party/mbed-os-posix-socket/repo
    D third_party/mbed-os/repo
    D third_party/mbedtls/repo
    D third_party/nanopb/repo
    D third_party/nlfaultinjection/repo
    D third_party/nlunit-test/repo
    D third_party/openthread/ot-efr32
    D third_party/openthread/ot-ifx
    D third_party/openthread/ot-nxp
    D third_party/openthread/ot-qorvo
    D third_party/openthread/repo
    D third_party/ot-br-posix/repo
    D third_party/p6/p6_sdk/libs/TARGET_CY8CKIT-062S2-43012
    D third_party/p6/p6_sdk/libs/abstraction-rtos
    D third_party/p6/p6_sdk/libs/bluetooth-freertos
    D third_party/p6/p6_sdk/libs/btstack
    D third_party/p6/p6_sdk/libs/clib-support
    D third_party/p6/p6_sdk/libs/connectivity-utilities
    D third_party/p6/p6_sdk/libs/core-lib
    D third_party/p6/p6_sdk/libs/core-make
    D third_party/p6/p6_sdk/libs/freertos
    D third_party/p6/p6_sdk/libs/kv-store
    D third_party/p6/p6_sdk/libs/lwip
    D third_party/p6/p6_sdk/libs/mbedtls
    D third_party/p6/p6_sdk/libs/mtb-hal-cat1
    D third_party/p6/p6_sdk/libs/mtb-pdl-cat1
    D third_party/p6/p6_sdk/libs/psoc6cm0p
    D third_party/p6/p6_sdk/libs/recipe-make-cat1a
    D third_party/p6/p6_sdk/libs/retarget-io
    D third_party/p6/p6_sdk/libs/secure-sockets
    D third_party/p6/p6_sdk/libs/whd-bsp-integration
    D third_party/p6/p6_sdk/libs/wifi-connection-manager
    D third_party/p6/p6_sdk/libs/wifi-host-driver
    D third_party/p6/p6_sdk/libs/wifi-mw-core
    D third_party/pybind11/repo
    D third_party/qpg_sdk/repo
    D third_party/simw-top-mini/repo
    D third_party/zap/repo
    fatal: 'submodule' appears to be a git command, but we were not
    able to execute it. Maybe git-submodule is broken?
    === updating cjson (modules/lib/cjson):
    HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    === updating cmock (test/cmock):
    HEAD is now at 9d09289 Merge pull request #346 from ThrowTheSwitch/reapply_329
    D vendor/c_exception
    M vendor/unity
    === updating unity (test/cmock/vendor/unity):
    HEAD is now at 74cde08 Merge pull request #540 from numaru/master
    === updating Alexa-Gadgets-Embedded-Sample-Code (modules/alexa-embedded):
    HEAD is now at face92d Update firmware.options signature_size from 48 to 65
    === updating cddl-gen (modules/lib/cddl-gen):
    HEAD is now at 1c2656d zephyr: module.yml: Change cmake-ext to True
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    HEAD is now at 2fe5ba1 Memfault Firmware SDK 0.28.2 (Build 384364)
    === updating openthread (modules/lib/openthread):
    HEAD is now at 02e61a2ed [nrf noup] allow link metrics series for all children
    === updating canopennode (modules/lib/canopennode):
    HEAD is now at 1052dae Merge pull request #4 from vestas-wind-systems/mergeup-2021-10-29
    === updating civetweb (modules/lib/civetweb):
    HEAD is now at 094aeb41 cmake: relax minimum version requirements
    === updating cmsis (modules/hal/cmsis):
    HEAD is now at b0612c9 DSP: Integrate CMSIS-DSP 1.9.0 (CMSIS 5.8.0)
    === updating edtt (tools/edtt):
    HEAD is now at c94f638 Replaced 'white list' and variations thereof with 'filter accept list'
    === updating fatfs (modules/fs/fatfs):
    HEAD is now at 94fcd6b fs: Update driver to version 0.14b
    === updating hal_nordic (modules/hal/nordic):
    HEAD is now at b1db86f drivers: nrf_802154: nrf_802154_irq_init negative `prio` ZLI
    === updating hal_st (modules/hal/st):
    HEAD is now at 575de9d sensor/stmemsc: Align stmemsc i/f to v2.00
    === updating libmetal (modules/hal/libmetal):
    HEAD is now at f237c9d lib: update libmetal to release v2021.10.0
    === updating littlefs (modules/fs/littlefs):
    HEAD is now at 33509ed Merge pull request #7 from poojamg/littlefs_rev2.4.1
    === updating loramac-node (modules/lib/loramac-node):
    HEAD is now at 12019623 zephyr: radio: sx127x: override buffer read/write functions
    D src/peripherals/atecc608a-tnglora-se/cryptoauthlib
    D src/radio/lr1110/lr1110_driver
    === updating lvgl (modules/lib/gui/lvgl):
    HEAD is now at 783c1f78 cmake: added missing file ext to lv_font_dejavu_16_persian_hebrew.c
    === updating lz4 (modules/lib/lz4):
    HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    === updating mbedtls (modules/crypto/mbedtls):
    HEAD is now at 3e3e58a92 mbedtls: remove static keyword from certain function pointers
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD is now at 75e6715 zephyr: move platform.h to zephyr tree
    D external/googletest
    D external/pugixml
    === updating nanopb (modules/lib/nanopb):
    HEAD is now at d148bd2 Add zephyr module support
    === updating net-tools (tools/net-tools):
    HEAD is now at f49bd13 net-capture: Listen captured traffic and save to pcap file
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD is now at b8cea37 Added overflow event handling and trigger overflow task
    === updating open-amp (modules/lib/open-amp):
    HEAD is now at cfd050f lib: update open-amp lib to release v2021.10.0
    === updating segger (modules/debug/segger):
    HEAD is now at 3a52ab2 config: Use zephyr provided options
    === updating tinycbor (modules/lib/tinycbor):
    HEAD is now at 40daca9 zephyr: Remove TINYCBOR from interface libraries
    === updating tinycrypt (modules/crypto/tinycrypt):
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    === updating TraceRecorderSource (modules/debug/TraceRecorder):
    HEAD is now at 36c5777 Merge remote-tracking branch 'upstream/main' into zephyr
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD is now at 5281418 Merge pull request #1 from SebastianBoe/merge_tfm-1.5
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD is now at 0aab246 Merge pull request #2 from joerchan/fix-wdt-build-issues
    === updating zscilib (modules/lib/zscilib):
    HEAD is now at 12bfe3f Merge pull request #28 from microbuilder/doccleanup
    ERROR: update failed for project matter

    And when I tried to update the SDK from the Toolchain Manager, error ocurred either.

     

    I'm now trying to reinstall it.

  • any update in this? facing a similar issue

Related