VS Code SDK install failure

Have tried several times to install the SDK into VS code without success. This is one of the errors I am getting:

Failed to register SDK installation: west failed with code -4058 (cmd 'west zephyr-export) (cwd 'd:\ncs\v3.3.0'):
The SDK will not be detected by VSCode before the CMake Package Registry is corrected for the Zephyr package: d:\ncs\v3.3.0
[11:17:50] Unable to find the toolchain at path:  C:/ncs/toolchains/dcbdc366a1/opt/zephyr-sdk/gnu/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
[11:17:50] Unable to find the toolchain at path:  C:/ncs/toolchains/dcbdc366a1/opt/zephyr-sdk/gnu/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
I also tried reinstalling without success. Do I need to stall more than "nRF Connect for VS Code Extension Pack  v2025.4.4" before installing the SDK? 
Parents
  • Hi David,

    I noticed that the SDK and toolchain are installed on different drives. The SDK appears to be on d:\ drive, and the toolchain on C:\ drive. Could you confirm whether you have a d:\ drive at all? Could you reinstall both the SDK and toolchain under the same root directory to see whether that resolves the issue? 

    Regards,
    Nissanth Karunanithy 

  • The only message I have is the one saying: "Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration." I do not see any other logs. Please advise.

  • I found an issue with the build conf. Fixed it, but still getting this error:

    C:/ncs/v3.3.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
    template/CMakeLists.txt:10 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\936afb6332\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/936afb6332/opt/bin/python.exe '-Bd:\Active\firealarm\firealarm\build_1' -GNinja -DBOARD=nrf54lm20dk/nrf54lm20b/cpuapp -DCONFIG_DEBUG_THREAD_INFO=y '-SC:\ncs\v3.3.0\zephyr\share\sysbuild'

  • Hi David,

    I have noticed that you have been using two different toolchains. If you are building with nRF Connect SDK v3.3.0, the toolchain with the hash 936afb6332 is the correct one. The one you used earlier (dcbdc366a1) belongs to v3.4.0.

    I am currently trying to reproduce the error on my end. In the meantime, could you check the build output in the nRF Connect terminal? Specifically, I would like to know whether you see a line beginning with "CMake Error at" and a "Call Stack (most recent call first):" block above the two lines you sent me. The image below shows what this looks like on my setup.

    Regards,
    Nissanth Karunanithy

  • I do see this message:

    [bookmarks] Loaded 0 bookmarks
    [kit] Successfully loaded 0 kits from C:\Users\david\AppData\Local\CMakeTools\cmake-tools-kits.json
    [variant] Loaded new set of variants
    [extension] CMake not found during configure-on-open. Waiting for nRF Connect to finish setup...
    [extension] CMake not found after 4 retries
    [main] Configuring project: firealarm
  • Hi again, 

    Do you have "CMake tools" from microsoft enabled as extension? If you do, can you try to disable it? Click on disable (workspace) as shown in the screenshot below. Close and reopen VScode, then remove all build folders under "d:\Active\firealarm\firealarm\". Then create the build configuration and build again. 

    Regards,

    Nissanth Karunanithy

Reply
  • Hi again, 

    Do you have "CMake tools" from microsoft enabled as extension? If you do, can you try to disable it? Click on disable (workspace) as shown in the screenshot below. Close and reopen VScode, then remove all build folders under "d:\Active\firealarm\firealarm\". Then create the build configuration and build again. 

    Regards,

    Nissanth Karunanithy

Children
  • Did  everything to the point of adding a new build config. Here is the error:

    [west]: FATAL ERROR: failed manifest import in sdk-edge-ai> (external/edge-ai>):
    [west]:   Failed importing "west.yml" from revision "">github.com/.../sdk-edge-ai>"
    [west]:   Hint: sdk-edge-ai> must be cloned, owned by the user and its manifest-rev ref must point to a commit with the import data
    [west]:   To fix, run "west update. If it still fails, try "west -vv ..."

    [west]: exited with code 1.
Related