nRF Connect SDK Quick Setup Failure

Hi,


I am having an issue with setting up the nRF Connect for VS Code

I have installed the following apps step-by-step as mentioned in the Nordic Installation Guide:

  • nRF Command Line Tools 10.21.0
  • nRF Connect 4.0.1
  • VS Code 1.78.0
  • nRF Connect SDK 2.3.0 incl. toolchain. 
  • SEGGER JLink 7.80

When trying to setup nRF Connect SDK it gives me an error message: 

       Invalid toolchain installation.

  • jlink is required but not found. Please ensure that SEGGER J-Link Software and Documentation Pack is installed

Toolchain invalid

Looks like it doesn't see the toolchain in the folder. Toolchain and the SDK is in the folder. I have even tried full uninstallation and tried to install a fresh copy, but with no luck.

In the Environment Variables I have got the following:

User Variables for Jev

Path 

  • C:\Users\Jev\AppData\Local\Programs\Microsoft VS Code\bin
  • C:\Program Files\SEGGER\JLink
  • ... other non-related paths

System Variables

Path 

  • C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\


An interesting fact is that I have got exactly the same configuration on another laptop and have no issues at all. This PC that fails had a previously installed nRF SDK that failed to use SEGGER J-Link for programming and nRF Connect was completely reinstalled. 

Thanks,
Jev

Parents
  • Can you run "nrfjprog --version" in a terminal and share the output? I'd like to verify that the command line tools and J-Link driver has been installed correctly.

  • nrfjprog version: 10.21.0 external
    JLinkARM.dll version: 7.88a

    I have currently updated J-Link to the latest, previously it was 7.80c

  • It is only displayed when I do browse. Itis does not show any options before I do browse at all. 

    Yes, what settings do you need and how can I do it?

  • I have tried lots of variants in the settings

    In the settings on my other laptop which works without issues settings are set to ${nrf-connect.toolchain:2.3.0} and ${nrf-connect.sdk:2.3.0} respectively. 

    I have been tried copying the settings.json from the working laptop

  • The settings file says that you have modified the toolchain path in the current workspace, can you share the *.code-workspace file and it's path? 

  • I have modified it after it failed in trying to get it working by typing in the toolchain and SDK paths manually but with no luck. 

    Are you talking about the following ones? 

    {
    	"folders": [
    		{
    			"path": "C:/Nordic/MyApps"
    		}
    	],
    	"settings": {
    		"nrf-connect.toolchain.path": "c:\\NordicSemi\\toolchains\\v2.3.0"
    	}
    }

    Path for the workspace Settings:

    C:\Users\Jev\AppData\Roaming\Code\Workspaces\1683734868683

    {
        "nrf-connect.welcome.showOnStartup": true,
        "nrf-connect.enableTelemetry": true,
        "nrf-connect.toolchain.path": "C:\\NordicSemi\\toolchains\\v2.3.0",
        "nrf-connect.topdir": "C:\\NordicSemi\\v2.3.0"
    }

    Path for the User Settings:

    C:\Users\Jev\AppData\Roaming\Code\User

  • Hmm. I don't see anything obviously wrong.

    Try copying this workspace file into "C:\\NordicSemi\\v2.3.0", then in VS Code you go to 'File' -> 'Open Workspace from File" and choose "C:\\NordicSemi\\v2.3.0\\v2.3.0.code-workspace". After that you can try to verify the toolchain via the nRF plugin's welcome page.

    0317.v2.3.0.zip

    PS: unzip first.

Reply Children
  • Complete, that is what I now got instead. It is not giving to select at all.

  • Hi,

    HĂĄkon is out of office.

    Jev said:
    It is not giving to select at all

    This is the intended behavior. If you have a west workspace open, it will automatically select the SDK version of the open workspace.

    Are you also having issues with selecting toolchain after making these changes?

    Best regards,
    Marte

  • Hi Marte,


    I have deleted .west from the workspace. Everything is back to as before. 

    Invalid toolchain installation


    Thanks,
    Jev

  • Hi Jev,

    Please provide support information from the VS Code extension:

    1. Open the command palette (Ctrl + Shift + P or View > Command Palette).
    2. Write "nRF Connect: Generate support information" and press enter.
    3. Copy the entire support information output.
    4. Upload it here using Insert > Code or upload a .txt file with Insert > Image/video/file.

    Make sure to remove confidential information you do not want to be shared in a public case.

    Best regards,
    Marte

  • 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 Home",
        "osKernel": "10.0.19045",
        "vscode": "1.78.2",
        "electron": "22.5.2",
        "node": "v16.17.1"
      },
      "system": {
        "date": "2023-05-31T13:58:03.306Z",
        "vscodeRoot": "c:\\Users\\Jev\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:48",
        "osUptime": "334:31:28",
        "cpu": {
          "model": "Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz",
          "speed": "1800 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.88 GB",
          "free": "5.13 GB"
        }
      },
      "workspace": {
        "name": "v2.3.0 (Workspace)",
        "workspaceFile": "c:\\NordicSemi\\v2.3.0\\v2.3.0.code-workspace",
        "folders": [
          "c:\\NordicSemi\\v2.3.0"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.4.179",
            "path": "c:\\Users\\Jev\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.4.179-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.4.15",
            "path": "c:\\Users\\Jev\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.4.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.4.61",
            "path": "c:\\Users\\Jev\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.4.61",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.4.17",
            "path": "c:\\Users\\Jev\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.4.17",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "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",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "zephyr-sdk": "Not found",
        "nrfjprog": "Not found",
        "nrfutil": "Not found",
        "cmake": "Not found",
        "west": "Not found",
        "python": "Not found",
        "ninja": "Not found",
        "gperf": "Not found",
        "dtc": "Not found",
        "gn": "Not found",
        "git": "Not found",
        "gdbPath": "c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "sdks": [],
      "toolchains": [],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${workspaceFolder}",
          "toolchain": {
            "path": "c:\\NordicSemi\\toolchains\\v2.3.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"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Jev",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Jev",
          "Path": "c:\\NordicSemi\\toolchains\\v2.3.0\\mingw64\\bin;c:\\NordicSemi\\toolchains\\v2.3.0\\mingw64\\libexec\\git-core;c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin;c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\NordicSemi\\toolchains\\v2.3.0\\arm-zephyr-eabi\\bin;c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin\\Scripts;C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Jev\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\CMake\\bin;;C:\\Users\\Jev\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin;c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin\\Lib;c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Jev",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Jev",
          "Path": "C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Jev\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\CMake\\bin;;C:\\Users\\Jev\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Jev\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\SEGGER\\JLink;C:\\Program Files\\CMake\\bin;;C:\\Users\\Jev\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        },
        "toolchainPath": "c:\\NordicSemi\\toolchains\\v2.3.0",
        "toolchainBinPath": "c:\\NordicSemi\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.3.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

    Hi,

    Sorry, it took me some time to get everything installed back, as I have been trying to reinstall using the manual installation process, but no luck. Please see the generated output attached.

    It cannot see cmake for some reason when I tried to install it manually. Could it be linked to the issue above?


    Thanks,
    Jev

Related