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

  • 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

Related