Unable to create a build configuration in VS Code using nRF Connect Extension

Hi, 

I followed the instructions listed in Installing the nRF Connect SDK (nordicsemi.com). Then I followed the steps in How to create and build an application (nordicsemi.com) but I keep getting the error shown in the attachment when trying to build the application. I am stuck at the 'Add Build Configuration' step with the error attached. ("Could NOT find Python3"). Could someone please help me figure out what I am missing?

When I hit 'Build Configuration' the nRFConnect Terminal just sits there spinning with no output or error. Then, I tried to use 'west build' command and that's when I see the error attached. 

Using toolchain v2.7.0

SDK v2.7.0

Parents
  • Hi,

    Looks to me that something has gone wrong in the installation procedure.

    Could you follow the installation steps in https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html and select "nRF Connect for Visual Studio Code" for every step throughout the way? You should not be required to use chokolatey for anything.

    The same steps are explained in https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-1-nrf-connect-sdk-introduction/ 

    Can you also copy-paste the full build logs instead of pasting screenshots? Attatch them using Insert -> Code or as a .txt file.

    Kind regards,
    Andreas

  • Hello Andreas,

    I followed the steps on the link you provided(which is what I have done quite a few times before I decided to ask for help on the forum). I installed the 2.7.0 toolchain and the 2.7.0 SDK. When I try to add a build configuration and start a build, the task seems to be "hanging" (spinning wheel and grayed out configuration tab). There is an error on the 'Output' tab reported right away. "Error: there is no registered task type 'nrf-connect-generate'. Did you miss installing an extension that provides a corresponding task provider?"

    To try another way to generate a build output file, I tried to use the command on ther terminal

    > west build --board nrf52832 (possibly incorrect but I have a build folder and a file in there that I have attached)

    # This is the CMakeCache file.
    # For build in directory: c:/nordic/myapps/blinky_pwm_1/build
    # It was generated by CMake: C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe
    # You can edit this file to change values found and used by cmake.
    # If you do not want to change any of the values, simply exit the editor.
    # If you do want to change a value, simply edit, save, and exit the editor.
    # The syntax for the file is as follows:
    # KEY:TYPE=VALUE
    # KEY is the name of a variable in the cache.
    # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
    # VALUE is the current value for the KEY.
    
    ########################
    # EXTERNAL cache entries
    ########################
    
    //Application Binary Directory
    APPLICATION_BINARY_DIR:PATH=C:/nordic/myapps/blinky_pwm_1/build
    
    //Application Source Directory
    APPLICATION_SOURCE_DIR:PATH=C:/nordic/myapps/blinky_pwm_1
    
    //No help, variable specified on the command line.
    BOARD:UNINITIALIZED=nrf52832
    
    //NCS Toolchain DTC
    DTC:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/dtc.exe
    
    //NCS Toolchain Git
    GIT_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/bin/git.exe
    
    //NCS GNU ARM emb path
    GNUARMEMB_TOOLCHAIN_PATH:PATH=C:/ncs/toolchains/ce3b5ff664/opt
    
    //NCS Toolchain gperf
    GPERF:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/gperf.exe
    
    //The directory containing a CMake configuration file for NcsToolchain.
    NcsToolchain_DIR:PATH=C:/ncs/toolchains/ce3b5ff664/cmake
    
    //NCS Toolchain protoc
    PROTOBUF_PROTOC_EXECUTABLE:STRING=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\;C:\ncs\toolchains\ce3b5ff664\mingw64\bin\;C:\ncs\toolchains\ce3b5ff664\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\Scripts\;C:\ncs\toolchains\ce3b5ff664\opt\nanopb\generator-bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\aarch64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\x86_64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\riscv64-zephyr-elf\bin\;c:\Users\paulek\.vscode\extensions\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\platform\nrfutil\lib\nrfutil-toolchain-manager\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath\;C:\WINDOWS\system32\;C:\WINDOWS\;C:\WINDOWS\System32\Wbem\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2022b\bin\;C:\Program Files\Git\cmd\;C:\Program Files\TortoiseGit\bin\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\;C:\Program Files (x86)\Plantronics\Spokes3G\;C\;C:\ProgramData\chocolatey\bin\;C:\Program Files\CMake\bin\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Microsoft VS Code\bin\;C:\Python\Scripts\;C:\Python\;C:\ncs\;C:\Users\paulek\AppData\Local\Microsoft\WindowsApps\;C:\Users\paulek\AppData\Local\gitkraken\bin\;C:\Users\paulek\;C:\Program Files (x86)\Keil_v5\ARM\ARMCLANG\bin;C:/ncs/toolchains/ce3b5ff664/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain protoc
    PROTOC:STRING=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\;C:\ncs\toolchains\ce3b5ff664\mingw64\bin\;C:\ncs\toolchains\ce3b5ff664\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\Scripts\;C:\ncs\toolchains\ce3b5ff664\opt\nanopb\generator-bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\aarch64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\x86_64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\riscv64-zephyr-elf\bin\;c:\Users\paulek\.vscode\extensions\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\platform\nrfutil\lib\nrfutil-toolchain-manager\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath\;C:\WINDOWS\system32\;C:\WINDOWS\;C:\WINDOWS\System32\Wbem\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2022b\bin\;C:\Program Files\Git\cmd\;C:\Program Files\TortoiseGit\bin\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\;C:\Program Files (x86)\Plantronics\Spokes3G\;C\;C:\ProgramData\chocolatey\bin\;C:\Program Files\CMake\bin\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Microsoft VS Code\bin\;C:\Python\Scripts\;C:\Python\;C:\ncs\;C:\Users\paulek\AppData\Local\Microsoft\WindowsApps\;C:\Users\paulek\AppData\Local\gitkraken\bin\;C:\Users\paulek\;C:\Program Files (x86)\Keil_v5\ARM\ARMCLANG\bin;C:/ncs/toolchains/ce3b5ff664/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain Python
    PYTHON_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //NCS Toolchain Python
    Python3_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //NCS Toolchain West
    WEST:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/Scripts/west.exe
    
    //No help, variable specified on the command line.
    WEST_PYTHON:UNINITIALIZED=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //Zephyr base
    ZEPHYR_BASE:PATH=C:/ncs/v2.7.0/zephyr
    
    //NCS Zephyr SDK install dir
    ZEPHYR_SDK_INSTALL_DIR:PATH=C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk
    
    //NCS Toolchain Variant
    ZEPHYR_TOOLCHAIN_VARIANT:STRING=zephyr
    
    //The directory containing a CMake configuration file for ZephyrAppConfiguration.
    ZephyrAppConfiguration_DIR:PATH=ZephyrAppConfiguration_DIR-NOTFOUND
    
    //The directory containing a CMake configuration file for ZephyrBuildConfiguration.
    ZephyrBuildConfiguration_DIR:PATH=C:/ncs/v2.7.0/nrf/share/zephyrbuild-package/cmake
    
    //The directory containing a CMake configuration file for Zephyr.
    Zephyr_DIR:PATH=C:/ncs/v2.7.0/zephyr/share/zephyr-package/cmake
    
    
    ########################
    # INTERNAL cache entries
    ########################
    
    //This is the directory where this CMakeCache.txt was created
    CMAKE_CACHEFILE_DIR:INTERNAL=c:/nordic/myapps/blinky_pwm_1/build
    //Major version of cmake used to create the current loaded cache
    CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
    //Minor version of cmake used to create the current loaded cache
    CMAKE_CACHE_MINOR_VERSION:INTERNAL=21
    //Patch version of cmake used to create the current loaded cache
    CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
    //Path to CMake executable.
    CMAKE_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe
    //Path to cpack program executable.
    CMAKE_CPACK_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/cpack.exe
    //Path to ctest program executable.
    CMAKE_CTEST_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/ctest.exe
    //Name of external makefile project generator.
    CMAKE_EXTRA_GENERATOR:INTERNAL=
    //Name of generator.
    CMAKE_GENERATOR:INTERNAL=Ninja
    //Generator instance identifier.
    CMAKE_GENERATOR_INSTANCE:INTERNAL=
    //Name of generator platform.
    CMAKE_GENERATOR_PLATFORM:INTERNAL=
    //Name of generator toolset.
    CMAKE_GENERATOR_TOOLSET:INTERNAL=
    //Source directory with the top level CMakeLists.txt file for this
    // project
    CMAKE_HOME_DIRECTORY:INTERNAL=C:/nordic/myapps/blinky_pwm_1
    //NCS Toolchain ninja
    CMAKE_MAKE_PROGRAM:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/ninja.exe
    //number of local generators
    CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
    //Path to CMake installation.
    CMAKE_ROOT:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/share/cmake-3.21
    _Python3_EXECUTABLE:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    

    I am working remotely and wonder if the antivirus software installed by my company could be preventing any script from running? The reason I used chocolatey was to try another installation method - Installing manually (nordicsemi.com). I ran into an error from Cyclance preventing the scripts from running completely so I abandoned that route. 

    Any help or guidance you can provide would be greatly appreciated. 

    Thanks!

  • Thank you for verifying 

    LPauly said:
    . The file I attached earlier is the CMakeCache.txt file found in the build folder, not exactly the build log. Maybe that's why it looks different. I apologize for attaching another screenshot but I don't know where this build log is located. This is what I see when I run the 'west build' command. 

    A quick thought: Is this command entered in a generic cmd or one opened through the toolchain? I.e 

    (Ignore the mismatched toolchain and SDK on my part, I have multiple instances opened at the moment). If it is a generic terminal and not a "Terminal Profile", could you try again by opening the Terminal profile?

    And if you do see the same issue that I saw when building with "west build --board nrf52832dk", could you try again with the correct target, i.e "west build --board nrf52dk_nrf5232". I assume it is a nRF52DK you're using (which has the nRF52832 SoC onboard)?

    Kind regards,
    Andreas

  • I opened the terminal from the toolchain and tried the command again with the same build errors as before. I also tried with the correct target with the same error - "Could NOT find Python3". I think reinstallation is the way to go. 

  • Thank you for confirming, keep me posted about the progress 

    Kind regards,
    Andreas

  • No luck.

    Uninstalled and reinstalled a few times over, deleting %appdata%\code, %userdata%\.vscode each time. But I still get the same error message. "CMake Error at... Could not find Python3 (missing : Interpreter)".

    1. I even tried an older version of VS code (1.92.0). I also tried to install a previous version of nrf command line tools (10.18.0). Still the same error. Should I be restarting my computer every time I reinstall?

    2. I am selecting the x64 version for each download since the system type(from System information) is x64 based PC. I assume this is correct. 

    3. Would you be able to share your "General Support Information". Maybe I can figure out what I am missing. 

  • Hi

    LPauly said:
    2. I am selecting the x64 version for each download since the system type(from System information) is x64 based PC. I assume this is correct. 

    Quick sanity check: You say x64, but to avoid any wrong assumptions: Which arcitecthure is your windows machine? Is it ARM64 or x64?

    Reason for the question is due to ARM64 not being supported as of now: docs.nordicsemi.com/.../install_ncs.html

    LPauly said:
    3. Would you be able to share your "General Support Information". Maybe I can figure out what I am missing. 

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19045",
        "vscode": "1.92.2",
        "electron": "30.1.2",
        "node": "v20.14.0"
      },
      "system": {
        "date": "2024-10-17T06:49:50.611Z",
        "vscodeRoot": "c:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:22",
        "osUptime": "72:21:29",
        "cpu": "Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz"
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1727688502417",
        "folders": [
          "c:\\ncs\\sdk"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0",
          "path": "c:\\ncs\\sdk"
        }
      ],
      "apps": [],
      "topdir": "c:\\ncs\\sdk",
      "workspaceState": "workspace-initialised",
      "toolchains": [
        {
          "version": "2.7.99-cs2",
          "path": "c:\\ncs\\toolchains\\2c13e7691c"
        },
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.2",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\ce3b5ff664",
        "version": "2.7.0",
        "displayName": "nRF Connect SDK Toolchain v2.7.0"
      },
      "connectedDevices": [],
      "deviceProvider": "nrfjprog",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": null,
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfutil.exe": null,
        "C:\\ncs\\toolchains\\ce3b5ff664\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.5.0",
          "binPath": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\anh4",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "PATH": "C:\\ncs\\toolchains\\ce3b5ff664;C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm",
          "ZEPHYR_BASE": "c:\\ncs\\sdk\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\anh4",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "Path": "C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;\";C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;\";C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "GNUARMEMB_TOOLCHAIN_PATH": "C:\\gnuarmemb\\bin"
        }
      },
      "terminal": {
        "defaultProfile": "Command Prompt"
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.6.1}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.7.0}"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfjprog",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.9.87",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.9.26",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.9.26",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.9.20",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.9.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.92.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.9",
          "cschlosser.doxdocgen": "1.4.0",
          "formulahendry.code-runner": "0.12.2",
          "jeff-hykin.better-cpp-syntax": "1.27.1",
          "ms-python.debugpy": "2024.10.0",
          "ms-python.python": "2024.14.1",
          "ms-python.vscode-pylance": "2024.10.1",
          "ms-toolsai.jupyter": "2024.7.0",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.9",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.6",
          "ms-vscode-remote.remote-containers": "0.388.0",
          "ms-vscode-remote.remote-ssh": "0.113.1",
          "ms-vscode-remote.remote-wsl": "0.88.4",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.remote-explorer": "0.4.3",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }

    Two more suggestions:

    1. Open a terminal profile from VS Code and enter "where python" and "python --version".

    2. Another angle of attack is to attempt the installation process through the toolchain manager that you find in nRF Connect for Desktop: https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop 

      Installation procedure should be similar to what you've done.

      Then after installing SDK and Toolchain, open the "Toolchain Manager in nRF Connect for Desktop", click the arrow next to "Open VS Code", and "Open command prompt" to open a terminal with that toolchain profile. 



      Then repeat the steps with "where python" and "python --version"

    Kind regards,
    Andreas

Reply
  • Hi

    LPauly said:
    2. I am selecting the x64 version for each download since the system type(from System information) is x64 based PC. I assume this is correct. 

    Quick sanity check: You say x64, but to avoid any wrong assumptions: Which arcitecthure is your windows machine? Is it ARM64 or x64?

    Reason for the question is due to ARM64 not being supported as of now: docs.nordicsemi.com/.../install_ncs.html

    LPauly said:
    3. Would you be able to share your "General Support Information". Maybe I can figure out what I am missing. 

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19045",
        "vscode": "1.92.2",
        "electron": "30.1.2",
        "node": "v20.14.0"
      },
      "system": {
        "date": "2024-10-17T06:49:50.611Z",
        "vscodeRoot": "c:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:22",
        "osUptime": "72:21:29",
        "cpu": "Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz"
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1727688502417",
        "folders": [
          "c:\\ncs\\sdk"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0",
          "path": "c:\\ncs\\sdk"
        }
      ],
      "apps": [],
      "topdir": "c:\\ncs\\sdk",
      "workspaceState": "workspace-initialised",
      "toolchains": [
        {
          "version": "2.7.99-cs2",
          "path": "c:\\ncs\\toolchains\\2c13e7691c"
        },
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.2",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\ce3b5ff664",
        "version": "2.7.0",
        "displayName": "nRF Connect SDK Toolchain v2.7.0"
      },
      "connectedDevices": [],
      "deviceProvider": "nrfjprog",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": null,
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfutil.exe": null,
        "C:\\ncs\\toolchains\\ce3b5ff664\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.5.0",
          "binPath": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\anh4",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "PATH": "C:\\ncs\\toolchains\\ce3b5ff664;C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm",
          "ZEPHYR_BASE": "c:\\ncs\\sdk\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\anh4",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "Path": "C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;\";C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Program Files\\Google\\Chrome\\Application;C:\\Program Files (x86)\\VMware\\VMware Player\\bin\\;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\anh4\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;\"C:\\MinGW\\bin;\";\"C:\\MinGW\\msys\\1.0\\bin;\";C:\\msys64\\mingw64\\bin;C:\\Nordic\\SDKs\\ncs\\my_projects\\scripts;C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\GitHub CLI\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\WindowsPowerShell\\Scripts;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Users\\anh4\\go\\bin;C:\\Users\\anh4\\AppData\\Roaming\\npm;C:\\Users\\anh4\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "GNUARMEMB_TOOLCHAIN_PATH": "C:\\gnuarmemb\\bin"
        }
      },
      "terminal": {
        "defaultProfile": "Command Prompt"
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.6.1}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.7.0}"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfjprog",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.9.87",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.9.26",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.9.26",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.9.20",
            "path": "c:\\Users\\anh4\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.9.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.92.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.9",
          "cschlosser.doxdocgen": "1.4.0",
          "formulahendry.code-runner": "0.12.2",
          "jeff-hykin.better-cpp-syntax": "1.27.1",
          "ms-python.debugpy": "2024.10.0",
          "ms-python.python": "2024.14.1",
          "ms-python.vscode-pylance": "2024.10.1",
          "ms-toolsai.jupyter": "2024.7.0",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.9",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.6",
          "ms-vscode-remote.remote-containers": "0.388.0",
          "ms-vscode-remote.remote-ssh": "0.113.1",
          "ms-vscode-remote.remote-wsl": "0.88.4",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.remote-explorer": "0.4.3",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }

    Two more suggestions:

    1. Open a terminal profile from VS Code and enter "where python" and "python --version".

    2. Another angle of attack is to attempt the installation process through the toolchain manager that you find in nRF Connect for Desktop: https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop 

      Installation procedure should be similar to what you've done.

      Then after installing SDK and Toolchain, open the "Toolchain Manager in nRF Connect for Desktop", click the arrow next to "Open VS Code", and "Open command prompt" to open a terminal with that toolchain profile. 



      Then repeat the steps with "where python" and "python --version"

    Kind regards,
    Andreas

Children
No Data
Related