The VS code could not found the toolchain path

Dear Support Team

The VS code has always could found the toolchain path, but it could not today. I don't know why, I try to browse the toolchain path again and click the refresh button, but it still could not find the toolchain path. I have tried to reinstall the vs code and the nRF Connect for VS Code Extension Pack, but it still could not find the path. Many thanks.

Parents
  • Hi,

    Did you try opening VSCode via Toolchain Manager? Did you do any recent updates ?

    Which is the version of you nRF Connect for Desktop as well as version of your Toolchain Manager?

    And the SDK is v2.2.0?

    Best Regards.

    Priyanka

  • Dear Priyanka

    Because of I didn't install NCS via the Toolchain Manager, so I didn't try opening VSCode via Toolchain Manager, I always open the VSCode via double click the VSCode icon on the desktop. And I didn't do any update.

      

    This nRF Connect SDK I am using is v2.2.0 which was copied from a colleague before. Usually, I just need to add the paths of nRF Connect SDK and Toolchain separately to the positions in the welcome page like the picture below, then it could work successfully. 

    And usually, I can open the Add Build Configuration but it could not now. The project tnep_tag was built successfully before, now it get the reminder in the  picture below after I click the Add Build Configuration button.

      

  • Is it possible to attach the Support Information?
    You can get it by selecting the "Generate Support Information" .

    -Priyanka

Reply Children
  • Dear Priyanka

    Sorry for that, I don't know where to get the "Generate Support Information". Did you mean getting the "Generate Support Information" on the VSCode?

  • yes. You can find it under the WELCOME window.

  • Dear Priyanka

    The attachment is the "Generate Support Information". Many thanks.

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19045",
        "vscode": "1.78.0",
        "electron": "22.4.8",
        "node": "v16.17.1"
      },
      "system": {
        "date": "2023-05-09T07:23:54.411Z",
        "vscodeRoot": "c:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:01:04",
        "osUptime": "03:29:40",
        "cpu": {
          "model": "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz",
          "speed": "1805 MHz",
          "count": 4
        },
        "memory": {
          "total": "7.39 GB",
          "free": "0.79 GB"
        }
      },
      "workspace": {
        "name": null,
        "workspaceFile": null,
        "folders": []
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.4.179",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.4.179-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.4.15",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.4.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.4.61",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.4.61",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.4.17",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.4.17",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.10.0",
          "ms-vscode.cpptools": "1.15.4",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
          "ms-vscode.js-debug": "1.78.0",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.20",
          "mcu-debug.rtos-views": "0.0.6",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.15.1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.66a",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.16.0",
        "nrfutil": "Not found",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\gn.exe": "2073",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "sdks": [],
      "toolchains": [],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:\\nrfconnectsdk\\v2.1.2",
          "toolchain": {
            "path": "c:\\nrfconnectsdk\\toolchains\\v2.2.0"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\fut019",
          "HOMEDRIVE": "P:",
          "HOMEPATH": "\\",
          "Path": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\libexec\\git-core;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\arm-zephyr-eabi\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Scripts;C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Lib;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\fut019",
          "HOMEDRIVE": "P:",
          "HOMEPATH": "\\",
          "Path": "C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        },
        "toolchainPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0",
        "toolchainBinPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.2.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

  • Could you try upgrading the JLink to a more recent version? Now it's in v7.66a

    Also, where do you have your VSCode workspace, i.e. where is the folder that you save your VSCode projects located at? For eg, mine is as shown below:

    -Priyanka

  • Dear Priyanka

    Ok, Should I upgrading the JLink to a more recent version via upgrading the Command Line Tool to a more recent version?

    My VSCode projects are located at the position as below.

    My NCS is located at the position as below.

    My Toolchain is located at the position as below.

    It could find the Toolchain path now, but It popup a reminder of "Couldn't find any nRF Connect SDK installations".

    The attachment is the "Generate Support Information". Many thanks.

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19045",
        "vscode": "1.78.0",
        "electron": "22.4.8",
        "node": "v16.17.1"
      },
      "system": {
        "date": "2023-05-10T15:09:18.827Z",
        "vscodeRoot": "c:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:16:46",
        "osUptime": "01:47:29",
        "cpu": {
          "model": "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz",
          "speed": "1805 MHz",
          "count": 4
        },
        "memory": {
          "total": "7.39 GB",
          "free": "1.46 GB"
        }
      },
      "workspace": {
        "name": "tnep_tag",
        "workspaceFile": null,
        "folders": [
          "c:\\nrfconnectsdk\\myapps\\V2.2.0\\tnep_tag"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.4.179",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.4.179-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.4.15",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.4.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.4.61",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.4.61",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.4.17",
            "path": "c:\\Users\\fut019\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.4.17",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.10.0",
          "ms-vscode.cpptools": "1.15.4",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
          "ms-vscode.js-debug": "1.78.0",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.20",
          "mcu-debug.rtos-views": "0.0.6",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.15.1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.66a",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.16.0",
        "nrfutil": "Not found",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\gn.exe": "2073",
        "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "sdks": [],
      "toolchains": [],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:\\nrfconnectsdk\\v2.2.0",
          "toolchain": {
            "path": "c:\\nrfconnectsdk\\toolchains\\v2.2.0"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\fut019",
          "HOMEDRIVE": "P:",
          "HOMEPATH": "\\",
          "Path": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\mingw64\\libexec\\git-core;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\arm-zephyr-eabi\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Scripts;C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Lib;c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\fut019",
          "HOMEDRIVE": "P:",
          "HOMEPATH": "\\",
          "Path": "C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\ProgramData\\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 (x86)\\Sennheiser\\SenncomSDK\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\fut019\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\fut019\\appdata\\local\\microsoft\\windowsapps;C:\\Program Files (x86)\\d.velop\\d3client;C:\\Users\\fut019\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        },
        "toolchainPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0",
        "toolchainBinPath": "c:\\nrfconnectsdk\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.2.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

Related