nRF Connect SDK always fails with error "not found"

I am trying to follow along the Nordic DevAcademy courses for nRF Connect SDK and have a problem properly setting up the nRF Connect SDK.

I did as requested and installed the 'nRF Connect SDK for VS Code Extension pack".

The installation went smooth and successful (i.e. toolchain is installed successfully)

Later on I am asked to install a nRF Connect SDK and choose v2.5.0. The extension started cloning the SDK into c:\ncs\v2.5.0 which took around 10 minutes (I watched a lot of GIT clones into that directory) and seemed to be finished successful from what  I saw (exit code 0 in the end) but I got the message "installation failed"and I cannot build anything.

I then retried the same with v2.4.2 and v2.4.1 but just received the same errors. All the folders are there in c:\ncs and have a size of > 1 GB.

I then tried doing it manually on the commandline:

nrfutil toolchain-manager launch --terminal
west init -m github.com/.../sdk-nrf --mr v2.5.0
west update
west zephyr-export


Everything ran smoothly.

Opening an application in VS Code just shows again:

"The nRF Connect SDK is required, but not found. Install the nRF Connect SDK".

For some reason the VS Code extension does not seem to consider the installations successfull, but I cannot see any reason why this is.

When I tried the option "Convert to West workspace" I am asked for the folder of my opened app (c:\nordic\ncs-fund\v2.x.x\lesson2\fund_less2_exer1 in this case)
and am again asked for the SDK version (selecting v2.5.0 here again)

Now I get the option to "Some workspace modules are missing or incomplete and must be updated. Run West update". When I choose this it's again cloning the SDK but this
time into the application directory (again 1GB) and this time everything is fine - but of course I don't want to have the SDK in every single application directory I develop/open.

What could be wrong here?

Looking at all the messages seen it seems as if I was not in a "West workspace" when I installed the SDKs but I can't say way, as I followed along all instructions very closely.

Any idea?


Parents
  • In order to provide some more context, this is the log of the SDK installation, which was finished with a "SDK installation failed" popup:

    [18:06:48] nRF Command Line Tools 10.23.2 are up to date
    
    [west]: updating c:\ncs\v2.5.0...
    
    [west]: === updating zephyr (zephyr):
    [west]: --- zephyr: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/zephyr/.git/
    [west]: --- zephyr: fetching, need revision v3.4.99-ncs1
    [west]: From https://github.com/nrfconnect/sdk-zephyr
    [west]:  * tag                   v3.4.99-ncs1 -> FETCH_HEAD
    [west]: HEAD is now at 2e2523efe [nrf fromtree] tests: bluetooth: tester: Fix GATT read multiple
    [west]: HEAD is now at 2e2523efe [nrf fromtree] tests: bluetooth: tester: Fix GATT read multiple
    [west]: === updating bsim (tools/bsim):
    [west]: --- bsim: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/tools/bsim/.git/
    [west]: --- bsim: fetching, need revision 384a091445c57b44ac8cbd18ebd245b47c71db94
    [west]: From https://github.com/BabbleSim/bsim_west
    [west]:  * branch            384a091445c57b44ac8cbd18ebd245b47c71db94 -> FETCH_HEAD
    [west]: HEAD is now at 384a091 west.yaml Update to 2.1.1
    [west]: HEAD is now at 384a091 west.yaml Update to 2.1.1
    [west]: === updating hostap (modules/lib/hostap):
    [west]: --- hostap: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/hostap/.git/
    [west]: --- hostap: fetching, need revision d82c309c2e7eea5f08bbc1ac9e2f4c4622fbe998
    [west]: From https://github.com/nrfconnect/sdk-hostap
    [west]:  * branch              d82c309c2e7eea5f08bbc1ac9e2f4c4622fbe998 -> FETCH_HEAD
    [west]: HEAD is now at d82c309c [nrf fromlist] wpa_supplicant: Add an option to remove advanced features
    [west]: HEAD is now at d82c309c [nrf fromlist] wpa_supplicant: Add an option to remove advanced features
    [west]: === updating wfa-qt-control-app (modules/lib/wfa-qt-control-app):
    [west]: --- wfa-qt-control-app: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/wfa-qt-control-app/.git/
    [west]: --- wfa-qt-control-app: fetching, need revision 0e213ab6a421298484a81a9d18f5c31c4b8084a8
    [west]: From https://github.com/nrfconnect/sdk-wi-fiquicktrack-controlappc
    [west]:  * branch            0e213ab6a421298484a81a9d18f5c31c4b8084a8 -> FETCH_HEAD
    [west]: HEAD is now at 0e213ab [nrf noup]: zephyr: qt: Disconnect STA before reset
    [west]: HEAD is now at 0e213ab [nrf noup]: zephyr: qt: Disconnect STA before reset
    [west]: === updating mcuboot (bootloader/mcuboot):
    [west]: --- mcuboot: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/bootloader/mcuboot/.git/
    [west]: --- mcuboot: fetching, need revision v1.10.99-ncs1
    [west]: From https://github.com/nrfconnect/sdk-mcuboot
    [west]:  * tag               v1.10.99-ncs1 -> FETCH_HEAD
    [west]: HEAD is now at 2891664 [nrf noup] crypto: ecdsa: Fix shared crypto MCUBoot EXT_ABI
    [west]: HEAD is now at 2891664 [nrf noup] crypto: ecdsa: Fix shared crypto MCUBoot EXT_ABI
    [west]: === updating qcbor (modules/tee/tf-m/qcbor):
    [west]: --- qcbor: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/tee/tf-m/qcbor/.git/
    [west]: --- qcbor: fetching, need revision 751d36583a9ce1a640900c57e13c9b6b8f3a2ba2
    [west]: From https://github.com/laurencelundblade/QCBOR
    [west]:  * branch            751d36583a9ce1a640900c57e13c9b6b8f3a2ba2 -> FETCH_HEAD
    [west]: HEAD is now at 751d365 restore inc/qcbor.h for backwards compatibility (#181)
    [west]: HEAD is now at 751d365 restore inc/qcbor.h for backwards compatibility (#181)
    [west]: === updating mbedtls (modules/crypto/mbedtls):
    [west]: --- mbedtls: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/crypto/mbedtls/.git/
    [west]: --- mbedtls: fetching, need revision v3.3.0-ncs2
    [west]: From https://github.com/nrfconnect/sdk-mbedtls
    [west]:  * tag                 v3.3.0-ncs2 -> FETCH_HEAD
    [west]: HEAD is now at acea48fc [nrf noup]  Fix buffer overread with stream cipher
    [west]: HEAD is now at acea48fc [nrf noup]  Fix buffer overread with stream cipher
    [west]: === updating nrfxlib (nrfxlib):
    [west]: --- nrfxlib: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/nrfxlib/.git/
    [west]: --- nrfxlib: fetching, need revision v2.5.0
    [west]: From https://github.com/nrfconnect/sdk-nrfxlib
    [west]:  * tag               v2.5.0     -> FETCH_HEAD
    [west]: HEAD is now at 78cc07e openthread: add libraries based on commit 57ef721
    [west]: HEAD is now at 78cc07e openthread: add libraries based on commit 57ef721
    [west]: === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    [west]: --- trusted-firmware-m: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/tee/tf-m/trusted-firmware-m/.git/
    [west]: --- trusted-firmware-m: fetching, need revision v1.8.0-ncs1
    [west]: From https://github.com/nrfconnect/sdk-trusted-firmware-m
    [west]:  * tag               v1.8.0-ncs1 -> FETCH_HEAD
    [west]: HEAD is now at afd54b6 [nrf fromlist] platform: nordic_nrf: Fix assert in initialization
    [west]: HEAD is now at afd54b6 [nrf fromlist] platform: nordic_nrf: Fix assert in initialization
    [west]: === updating matter (modules/lib/matter):
    [west]: --- matter: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/matter/.git/
    [west]: --- matter: fetching, need revision v2.5.0
    [west]: From https://github.com/nrfconnect/sdk-connectedhomeip
    [west]:  * tag               v2.5.0     -> FETCH_HEAD
    [west]: HEAD is now at fd9be717 [nrf noup] Increase stability of Wi-Fi LPM operations
    [west]: HEAD is now at fd9be717 [nrf noup] Increase stability of Wi-Fi LPM operations
    [west]: Submodule 'nlio' (https://github.com/nestlabs/nlio.git) registered for path 'third_party/nlio/repo'
    [west]: Cloning into 'C:/ncs/v2.5.0/modules/lib/matter/third_party/nlio/repo'...
    [west]: Submodule path 'third_party/nlio/repo': checked out '0e725502c2b17bb0a0c22ddd4bcaee9090c8fb5c'
    [west]: Submodule 'nlassert' (https://github.com/nestlabs/nlassert.git) registered for path 'third_party/nlassert/repo'
    [west]: Cloning into 'C:/ncs/v2.5.0/modules/lib/matter/third_party/nlassert/repo'...
    [west]: Submodule path 'third_party/nlassert/repo': checked out 'c5892c5ae43830f939ed660ff8ac5f1b91d336d3'
    [west]: Submodule 'nlunit-test' (https://github.com/nestlabs/nlunit-test.git) registered for path 'third_party/nlunit-test/repo'
    [west]: Cloning into 'C:/ncs/v2.5.0/modules/lib/matter/third_party/nlunit-test/repo'...
    [west]: Submodule path 'third_party/nlunit-test/repo': checked out '0c8c9073af9c07aa089861295b7d7ced56ad174d'
    [west]: Submodule 'pigweed' (https://github.com/google/pigweed.git) registered for path 'third_party/pigweed/repo'
    [west]: Cloning into 'C:/ncs/v2.5.0/modules/lib/matter/third_party/pigweed/repo'...
    [west]: Submodule path 'third_party/pigweed/repo': checked out '5c4ea8e31764a8ab1c55b7df4086fe610c4bf4af'
    [west]: === updating cjson (modules/lib/cjson):
    [west]: --- cjson: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/cjson/.git/
    [west]: --- cjson: fetching, need revision c6af068b7f05207b28d68880740e4b9ec1e4b50a
    [west]: From https://github.com/nrfconnect/sdk-cjson
    [west]:  * branch            c6af068b7f05207b28d68880740e4b9ec1e4b50a -> FETCH_HEAD
    [west]: HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    [west]: HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    [west]: === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    [west]: --- azure-sdk-for-c: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/azure-sdk-for-c/.git/
    [west]: --- azure-sdk-for-c: fetching, need revision 308c171cb4b5eed266649012a68406487ec81fb2
    [west]: From https://github.com/nrfconnect/azure-sdk-for-c
    [west]:  * branch            308c171cb4b5eed266649012a68406487ec81fb2 -> FETCH_HEAD
    [west]: HEAD is now at 308c171 [nrf fromlist] Make repository a Zephyr module
    [west]: HEAD is now at 308c171 [nrf fromlist] Make repository a Zephyr module
    [west]: === updating cirrus (modules/hal/cirrus-logic):
    [west]: --- cirrus: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/cirrus-logic/.git/
    [west]: --- cirrus: fetching, need revision 9f6b3812237fbb0d4157ba3584c13f1644fcbe3a
    [west]: From https://github.com/nrfconnect/sdk-mcu-drivers
    [west]:  * branch            9f6b3812237fbb0d4157ba3584c13f1644fcbe3a -> FETCH_HEAD
    [west]: HEAD is now at 9f6b381 sdk-mcu-drivers: Added build system configs and generated files
    [west]: HEAD is now at 9f6b381 sdk-mcu-drivers: Added build system configs and generated files
    [west]: === updating openthread (modules/lib/openthread):
    [west]: --- openthread: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/openthread/.git/
    [west]: --- openthread: fetching, need revision 57ef721eeed2550835c528ab7b8e77671f7039d6
    [west]: From https://github.com/nrfconnect/sdk-openthread
    [west]:  * branch            57ef721eeed2550835c528ab7b8e77671f7039d6 -> FETCH_HEAD
    [west]: HEAD is now at 57ef721 [ip6] fix constant name style and simplify filtering of ICMP types (#9512)
    [west]: HEAD is now at 57ef721 [ip6] fix constant name style and simplify filtering of ICMP types (#9512)
    [west]: === updating cmock (test/cmock):
    [west]: --- cmock: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/test/cmock/.git/
    [west]: --- cmock: fetching, need revision f65066f15d8248e6dcb778efb8739904a4512087
    [west]: From https://github.com/ThrowTheSwitch/cmock
    [west]:  * branch            f65066f15d8248e6dcb778efb8739904a4512087 -> FETCH_HEAD
    [west]: HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    [west]: HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    [west]: Submodule 'vendor/c_exception' (https://github.com/throwtheswitch/cexception.git) registered for path 'vendor/c_exception'
    [west]: Submodule 'vendor/unity' (https://github.com/throwtheswitch/unity.git) registered for path 'vendor/unity'
    [west]: Cloning into 'C:/ncs/v2.5.0/test/cmock/vendor/c_exception'...
    [west]: Cloning into 'C:/ncs/v2.5.0/test/cmock/vendor/unity'...
    [west]: Submodule path 'vendor/c_exception': checked out '71b47be7c950f1bf5f7e5303779fa99a16224bb6'
    [west]: Submodule path 'vendor/unity': checked out '4389bab82ee8a4b4631a03be2e07dd5c67dab2d4'
    [west]: === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    [west]: --- memfault-firmware-sdk: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/memfault-firmware-sdk/.git/
    [west]: --- memfault-firmware-sdk: fetching, need revision 1.3.3
    [west]: From https://github.com/memfault/memfault-firmware-sdk
    [west]:  * tag               1.3.3      -> FETCH_HEAD
    [west]: HEAD is now at c374e92 Memfault Firmware SDK 1.3.3 (Build 3838)
    [west]: HEAD is now at c374e92 Memfault Firmware SDK 1.3.3 (Build 3838)
    [west]: === updating canopennode (modules/lib/canopennode):
    [west]: --- canopennode: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/canopennode/.git/
    [west]: --- canopennode: fetching, need revision dec12fa3f0d790cafa8414a4c2930ea71ab72ffd
    [west]: From https://github.com/zephyrproject-rtos/canopennode
    [west]:  * branch            dec12fa3f0d790cafa8414a4c2930ea71ab72ffd -> FETCH_HEAD
    [west]: HEAD is now at dec12fa stack: map CANopenNode crc16_ccitt() to Zephyr crc16_itu_t()
    [west]: HEAD is now at dec12fa stack: map CANopenNode crc16_ccitt() to Zephyr crc16_itu_t()
    [west]: === updating chre (modules/lib/chre):
    [west]: --- chre: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/chre/.git/
    [west]: --- chre: fetching, need revision b7955c27e50485b7dafdc3888d7d6afdc2ac6d96
    [west]: From https://github.com/zephyrproject-rtos/chre
    [west]:  * branch            b7955c27e50485b7dafdc3888d7d6afdc2ac6d96 -> FETCH_HEAD
    [west]: HEAD is now at b7955c2 Merge pull request #7 from stephanosio/require_full_libcpp
    [west]: HEAD is now at b7955c2 Merge pull request #7 from stephanosio/require_full_libcpp
    [west]: === updating cmsis (modules/hal/cmsis):
    [west]: --- cmsis: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/cmsis/.git/
    [west]: --- cmsis: fetching, need revision 1abf29132e608826752e2edd1f4799a065db4031
    [west]: From https://github.com/zephyrproject-rtos/cmsis
    [west]:  * branch            1abf29132e608826752e2edd1f4799a065db4031 -> FETCH_HEAD
    [west]: HEAD is now at 1abf291 zephyr: cmake/kconfig are external
    [west]: HEAD is now at 1abf291 zephyr: cmake/kconfig are external
    [west]: === updating edtt (tools/edtt):
    [west]: --- edtt: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/tools/edtt/.git/
    [west]: --- edtt: fetching, need revision 64e5105ad82390164fb73fc654be3f73a608209a
    [west]: From https://github.com/zephyrproject-rtos/edtt
    [west]:  * branch            64e5105ad82390164fb73fc654be3f73a608209a -> FETCH_HEAD
    [west]: HEAD is now at 64e5105 edttt_bsim: Avoid infinite exception loop
    [west]: HEAD is now at 64e5105 edttt_bsim: Avoid infinite exception loop
    [west]: === updating fatfs (modules/fs/fatfs):
    [west]: --- fatfs: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/fs/fatfs/.git/
    [west]: --- fatfs: fetching, need revision 427159bf95ea49b7680facffaa29ad506b42709b
    [west]: From https://github.com/zephyrproject-rtos/fatfs
    [west]:  * branch            427159bf95ea49b7680facffaa29ad506b42709b -> FETCH_HEAD
    [west]: HEAD is now at 427159b zephyr: fix ffconf.h override use of STRINGIZE
    [west]: HEAD is now at 427159b zephyr: fix ffconf.h override use of STRINGIZE
    [west]: === updating hal_nordic (modules/hal/nordic):
    [west]: --- hal_nordic: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/nordic/.git/
    [west]: --- hal_nordic: fetching, need revision 427ee1a519e8a0844d0f78f7cbc8cdfc134ef00d
    [west]: From https://github.com/zephyrproject-rtos/hal_nordic
    [west]:  * branch            427ee1a519e8a0844d0f78f7cbc8cdfc134ef00d -> FETCH_HEAD
    [west]: HEAD is now at 427ee1a nrfx: Fix overflow of pin_flags array on nRF52820 in GPIOTE driver
    [west]: HEAD is now at 427ee1a nrfx: Fix overflow of pin_flags array on nRF52820 in GPIOTE driver
    [west]: === updating hal_st (modules/hal/st):
    [west]: --- hal_st: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/st/.git/
    [west]: --- hal_st: fetching, need revision 9b128caf3e7b2e750169b880e83f210ea2213473
    [west]: From https://github.com/zephyrproject-rtos/hal_st
    [west]:  * branch            9b128caf3e7b2e750169b880e83f210ea2213473 -> FETCH_HEAD
    [west]: HEAD is now at 9b128ca sensor/stmemsc: Align stmemsc i/f to v2.3
    [west]: HEAD is now at 9b128ca sensor/stmemsc: Align stmemsc i/f to v2.3
    [west]: === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    [west]: --- hal_wurthelektronik: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/wurthelektronik/.git/
    [west]: --- hal_wurthelektronik: fetching, need revision 24ca9873c3d608fad1fea0431836bc8f144c132e
    [west]: From https://github.com/zephyrproject-rtos/hal_wurthelektronik
    [west]:  * branch            24ca9873c3d608fad1fea0431836bc8f144c132e -> FETCH_HEAD
    [west]: HEAD is now at 24ca987 Initialized WE HAL module repository.
    [west]: HEAD is now at 24ca987 Initialized WE HAL module repository.
    [west]: === updating libmetal (modules/hal/libmetal):
    [west]: --- libmetal: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/hal/libmetal/.git/
    [west]: --- libmetal: fetching, need revision b91611a6f47dd29fb24c46e5621e797557f80ec6
    [west]: From https://github.com/zephyrproject-rtos/libmetal
    [west]:  * branch            b91611a6f47dd29fb24c46e5621e797557f80ec6 -> FETCH_HEAD
    [west]: HEAD is now at b91611a lib: update libmetal to release v2023.04.0
    [west]: HEAD is now at b91611a lib: update libmetal to release v2023.04.0
    [west]: === updating liblc3 (modules/lib/liblc3):
    [west]: --- liblc3: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/liblc3/.git/
    [west]: --- liblc3: fetching, need revision 448f3de31f49a838988a162ef1e23a89ddf2d2ed
    [west]: From https://github.com/zephyrproject-rtos/liblc3
    [west]:  * branch            448f3de31f49a838988a162ef1e23a89ddf2d2ed -> FETCH_HEAD
    [west]: HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    [west]: HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    [west]: === updating littlefs (modules/fs/littlefs):
    [west]: --- littlefs: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/fs/littlefs/.git/
    [west]: --- littlefs: fetching, need revision ca583fd297ceb48bced3c2548600dc615d67af24
    [west]: From https://github.com/zephyrproject-rtos/littlefs
    [west]:  * branch            ca583fd297ceb48bced3c2548600dc615d67af24 -> FETCH_HEAD
    [west]: HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    [west]: HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    [west]: === updating loramac-node (modules/lib/loramac-node):
    [west]: --- loramac-node: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/loramac-node/.git/
    [west]: --- loramac-node: fetching, need revision 3029c9f304bf46a6e5205f3c8455dbc23108efec
    [west]: From https://github.com/zephyrproject-rtos/loramac-node
    [west]:  * branch            3029c9f304bf46a6e5205f3c8455dbc23108efec -> FETCH_HEAD
    [west]: HEAD is now at 3029c9f utilities: fix few shadowed variables
    [west]: HEAD is now at 3029c9f utilities: fix few shadowed variables
    [west]: === updating lvgl (modules/lib/gui/lvgl):
    [west]: --- lvgl: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/gui/lvgl/.git/
    [west]: --- lvgl: fetching, need revision 8a6a2d1d29d17d1e4bdc94c243c146a39d635fdd
    [west]: From https://github.com/zephyrproject-rtos/lvgl
    [west]:  * branch            8a6a2d1d29d17d1e4bdc94c243c146a39d635fdd -> FETCH_HEAD
    [west]: HEAD is now at 8a6a2d1 zephyr: Move gluecode back to zephyr main repository
    [west]: HEAD is now at 8a6a2d1 zephyr: Move gluecode back to zephyr main repository
    [west]: === updating lz4 (modules/lib/lz4):
    [west]: --- lz4: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/lz4/.git/
    [west]: --- lz4: fetching, need revision 8e303c264fc21c2116dc612658003a22e933124d
    [west]: From https://github.com/zephyrproject-rtos/lz4
    [west]:  * branch            8e303c264fc21c2116dc612658003a22e933124d -> FETCH_HEAD
    [west]: HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    [west]: HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    [west]: === updating mipi-sys-t (modules/debug/mipi-sys-t):
    [west]: --- mipi-sys-t: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/debug/mipi-sys-t/.git/
    [west]: --- mipi-sys-t: fetching, need revision a819419603a2dfcb47f7f39092e1bc112e45d1ef
    [west]: From https://github.com/zephyrproject-rtos/mipi-sys-t
    [west]:  * branch            a819419603a2dfcb47f7f39092e1bc112e45d1ef -> FETCH_HEAD
    [west]: HEAD is now at a819419 library: allow building without wchar support
    [west]: HEAD is now at a819419 library: allow building without wchar support
    [west]: === updating nanopb (modules/lib/nanopb):
    [west]: --- nanopb: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/nanopb/.git/
    [west]: --- nanopb: fetching, need revision 42fa8b211e946b90b9d968523fce7b1cfe27617e
    [west]: From https://github.com/zephyrproject-rtos/nanopb
    [west]:  * branch            42fa8b211e946b90b9d968523fce7b1cfe27617e -> FETCH_HEAD
    [west]: HEAD is now at 42fa8b2 Merge pull request #2 from pdgendt/zephyr
    [west]: HEAD is now at 42fa8b2 Merge pull request #2 from pdgendt/zephyr
    [west]: === updating net-tools (tools/net-tools):
    [west]: --- net-tools: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/tools/net-tools/.git/
    [west]: --- net-tools: fetching, need revision e0828aa9629b533644dc96ff6d1295c939bd713c
    [west]: From https://github.com/zephyrproject-rtos/net-tools
    [west]:  * branch            e0828aa9629b533644dc96ff6d1295c939bd713c -> FETCH_HEAD
    [west]: HEAD is now at e0828aa net-setup: Add instructions for NAT and routing
    [west]: HEAD is now at e0828aa net-setup: Add instructions for NAT and routing
    [west]: === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    [west]: --- nrf_hw_models: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/bsim_hw_models/nrf_hw_models/.git/
    [west]: --- nrf_hw_models: fetching, need revision 57b61a9a2da75c860f15ca79522b24d57992df2c
    [west]: From https://github.com/zephyrproject-rtos/nrf_hw_models
    [west]:  * branch            57b61a9a2da75c860f15ca79522b24d57992df2c -> FETCH_HEAD
    [west]: HEAD is now at 57b61a9 INT CNTRL: Generalize to N controllers
    [west]: HEAD is now at 57b61a9 INT CNTRL: Generalize to N controllers
    [west]: === updating open-amp (modules/lib/open-amp):
    [west]: --- open-amp: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/open-amp/.git/
    [west]: --- open-amp: fetching, need revision 42b7c577714b8f22ce82a901e19c1814af4609a8
    [west]: From https://github.com/zephyrproject-rtos/open-amp
    [west]:  * branch            42b7c577714b8f22ce82a901e19c1814af4609a8 -> FETCH_HEAD
    [west]: HEAD is now at 42b7c57 cmake: Compile with WITH_DCACHE_RSC_TABLE
    [west]: HEAD is now at 42b7c57 cmake: Compile with WITH_DCACHE_RSC_TABLE
    [west]: === updating picolibc (modules/lib/picolibc):
    [west]: --- picolibc: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/picolibc/.git/
    [west]: --- picolibc: fetching, need revision d07c38ff051386f8e09a143ea0a6c1d6d66dd1d8
    [west]: From https://github.com/zephyrproject-rtos/picolibc
    [west]:  * branch              d07c38ff051386f8e09a143ea0a6c1d6d66dd1d8 -> FETCH_HEAD
    [west]: HEAD is now at d07c38ff Version 1.8.2
    [west]: HEAD is now at d07c38ff Version 1.8.2
    [west]: === updating segger (modules/debug/segger):
    [west]: --- segger: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/debug/segger/.git/
    [west]: --- segger: fetching, need revision 9d0191285956cef43daf411edc2f1a7788346def
    [west]: From https://github.com/zephyrproject-rtos/segger
    [west]:  * branch            9d0191285956cef43daf411edc2f1a7788346def -> FETCH_HEAD
    [west]: HEAD is now at 9d01912 segger: config: RTT spinlock implementation
    [west]: HEAD is now at 9d01912 segger: config: RTT spinlock implementation
    [west]: === updating tinycrypt (modules/crypto/tinycrypt):
    [west]: --- tinycrypt: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/crypto/tinycrypt/.git/
    [west]: --- tinycrypt: fetching, need revision 3e9a49d2672ec01435ffbf0d788db6d95ef28de0
    [west]: From https://github.com/zephyrproject-rtos/tinycrypt
    [west]:  * branch            3e9a49d2672ec01435ffbf0d788db6d95ef28de0 -> FETCH_HEAD
    [west]: HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    [west]: HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    [west]: === updating TraceRecorderSource (modules/debug/TraceRecorder):
    [west]: --- TraceRecorderSource: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/debug/TraceRecorder/.git/
    [west]: --- TraceRecorderSource: fetching, need revision 1ede7ce8e7ab226e9a84d95266241ba3f38d91d2
    [west]: From https://github.com/zephyrproject-rtos/TraceRecorderSource
    [west]:  * branch            1ede7ce8e7ab226e9a84d95266241ba3f38d91d2 -> FETCH_HEAD
    [west]: HEAD is now at 1ede7ce Merge pull request #16 from aronlander-pe/zephyr
    [west]: HEAD is now at 1ede7ce Merge pull request #16 from aronlander-pe/zephyr
    [west]: === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    [west]: --- tf-m-tests: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/tee/tf-m/tf-m-tests/.git/
    [west]: --- tf-m-tests: fetching, need revision a878426da78fbd1486dfc29d6c6b82be4ee79e72
    [west]: From https://github.com/zephyrproject-rtos/tf-m-tests
    [west]:  * branch            a878426da78fbd1486dfc29d6c6b82be4ee79e72 -> FETCH_HEAD
    [west]: HEAD is now at a878426 Merge pull request #7 from d3zd3z/zephyr-1.8.0
    [west]: HEAD is now at a878426 Merge pull request #7 from d3zd3z/zephyr-1.8.0
    [west]: === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    [west]: --- psa-arch-tests: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/tee/tf-m/psa-arch-tests/.git/
    [west]: --- psa-arch-tests: fetching, need revision 6a17330e0dfb5f319730f974d5b05f7b7f04757b
    [west]: From https://github.com/zephyrproject-rtos/psa-arch-tests
    [west]:  * branch            6a17330e0dfb5f319730f974d5b05f7b7f04757b -> FETCH_HEAD
    [west]: HEAD is now at 6a17330 dev-apis: platform: Increase timeout for nRF devs
    [west]: HEAD is now at 6a17330 dev-apis: platform: Increase timeout for nRF devs
    [west]: === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    [west]: --- uoscore-uedhoc: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/uoscore-uedhoc/.git/
    [west]: --- uoscore-uedhoc: fetching, need revision 5fe2cb613bd7e4590bd1b00c2adf181ac0229379
    [west]: From https://github.com/zephyrproject-rtos/uoscore-uedhoc
    [west]:  * branch            5fe2cb613bd7e4590bd1b00c2adf181ac0229379 -> FETCH_HEAD
    [west]: HEAD is now at 5fe2cb6 2.2.1
    [west]: HEAD is now at 5fe2cb6 2.2.1
    [west]: === updating zcbor (modules/lib/zcbor):
    [west]: --- zcbor: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/zcbor/.git/
    [west]: --- zcbor: fetching, need revision 67fd8bb88d3136738661fa8bb5f9989103f4599e
    [west]: From https://github.com/zephyrproject-rtos/zcbor
    [west]:  * branch            67fd8bb88d3136738661fa8bb5f9989103f4599e -> FETCH_HEAD
    [west]: HEAD is now at 67fd8bb Update version from 0.6.99 to 0.7.0
    [west]: HEAD is now at 67fd8bb Update version from 0.6.99 to 0.7.0
    [west]: === updating zscilib (modules/lib/zscilib):
    [west]: --- zscilib: initializing
    [west]: Initialized empty Git repository in C:/ncs/v2.5.0/modules/lib/zscilib/.git/
    [west]: --- zscilib: fetching, need revision 34c3432e81085bb717e4871d21ca419ae0058ec5
    [west]: From https://github.com/zephyrproject-rtos/zscilib
    [west]:  * branch            34c3432e81085bb717e4871d21ca419ae0058ec5 -> FETCH_HEAD
    [west]: HEAD is now at 34c3432 Merge pull request #50 from microbuilder/ztest_fixes
    [west]: HEAD is now at 34c3432 Merge pull request #50 from microbuilder/ztest_fixes
    
    [west]: exited with code 0.
    

  • I know tried another route and used the nRF Connect app to install the SDK/Toolchain from scratch. This time the installation took 60 minutes and no error was shown. I was offered to open VS Code in the end. Then I went for opening the exercise application (from here https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-2-reading-buttons-and-controlling-leds/topic/exercise-1-2/) and this is what I received again... "The nRF SDK is required but not found".... :-(  Running out of ideas here.... What let's VS Code detect that the SDK is properly installed? Can I somehow fake this? Any registry keys that need to be set? Any yaml/config files to create?

Reply Children
  • I finally got it working, by manually specifying in VS code user settings the settings:

    Extensions -> nRF Connect -> Nrf-connect: Topdir to point to "C:\ncs\v.2.5.0"

    Without this settings, no SDK is ever detected, with this settings everything runs smoothly.

    So I wonder what might be the default directory where VS Code is looking for it?

    In which config file can I see this?

    When installing the toolchain I can specify the folder name "C:\ncs" - where is this stored? 

    Surprisingly the SDKs seem to install properly to C:\ncs\vX.Y.Z but something seems to be missing in VSCode to let the actual extension know this path?

  • Hello.

    I am not sure what is the problem here, maybe you can just double check that you have updated vs code and the nrf connect extensions? Here is how it looks like when I for instance open the ncs v2.5.0 folder:

    You can typically choose both toolchain and ncs version from the Welcome menu, but if you are inside a specific ncs release folder it will automatically use the ncs version given by west manifest.

    Also the documentation may give some pointers: https://nrfconnect.github.io/vscode-nrf-connect/

    Though I guess it could be an issue with a specific release, so you can also try to downgrade the nrf connect exension from within vs code to see if older works as intended.

    Kenneth

  • Hi Kenneth,

    I agree it's very weird indeed! I double checked of course if all the versions are identicial.

    The strange thing is, on another machine - where I had already toolchain/SDK 2.2.0 installed, the update to 2.5.0 worked fine with no issues with that topic. However I had to manually install the components of the nRF Connect Extension pack - they were installed initially but using them always brought the error "They are not installed. Use Extension manager to install them". Removing, reinstall, restart then fixed it. Without restart of VS even the explicit installation was still followed by "... is not installed".

    A friend of mine tried a vanilla installation with v2.5.0 in Linux and also had no problem. 

    I then tried deleting all the nRF extensions on the problematic machine and tried reinstalling without success. I even used procmon on both machines to see where the launch/file accesses differ, but couldn't spot anything.

    One thing I would like to know is: Where is the Root path to NCS (in my case c:\NCS) stored? Is it a registry key? A json settings file? Something different? Within %USERHOME%\.vscode or somewhere else?

    I already did a grep on the filesystem within .vscode but couldn't find that path. Where is the extension taking this value from? Maybe I can find the root cause then. 

  • Maybe you can find this thread useful:
    No boards found in nRF Connect for VS Code

    It's not directly related, but I just noticed he wrote: "It works now. I have removed everything VS Code and nRF related in the Appdata directory."

    Kenneth

  • Didn't help... removed %APPDATA%\Code and nrf*, removed %USERHOME%\.vscode, reinstalled all extensions from scratch.

    Toolchain got successfully installed, tried to install SDK.... failed....

    Removed the SDK directory and tried to manually install:

    c:\Users\daubsi\.vscode\extensions\nordic-semiconductor.nrf-connect-2023.11.24-win32-x64\platform\nrfutil\bin>.\nrfutil-toolchain-manager.exe launch --terminal

    in new terminal:

    cd c:\ncs
    mkdir v2.5.0
    cd v2.5.0

    west init -m github.com/.../sdk-nrf --mr v2.5.0

    west update

    west zephyr-export

    It all went fine, but starting up VS Code again said "No SDK found"....

    I don't get it... what could be wrong? Where else could something be stored if not in the initially deleted directories? 

Related