nRF Connect for VS Code does not detect JLink Device even though it is listed

The JLink device is detected and listed under connected Devices, but when selecting "Flash" or "Erase and flash" the "No devices connected" is shown.

Using "Debug" will program the device in debug mode as a work around, but that is inconvenient. 

Attached is a screenshot showing this after pressing the "Flash" action..

Support Information:

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Pro",
    "osKernel": "10.0.19044",
    "vscode": "1.65.1",
    "electron": "13.5.2",
    "node": "v14.16.0"
  },
  "system": {
    "date": "2022-03-10T06:24:24.225Z",
    "vscodeRoot": "c:\\Users\\david\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "09:18:29",
    "osUptime": "19:23:35",
    "cpu": {
      "model": "Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz",
      "speed": "1992 MHz",
      "count": 4
    },
    "memory": {
      "total": "15.88 GB",
      "free": "4.90 GB"
    }
  },
  "workspace": {
    "name": "workspace (Workspace)",
    "workspaceFile": "c:\\Clients\\XXX\\Firmware\\workspace.code-workspace",
    "folders": [
      "c:\\Clients\\XXX\\XXXrProto\\firmware\\device100",
      "c:\\Users\\david\\ncs\\v1.8.0"
    ]
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2022.3.70",
        "path": "c:\\Users\\david\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.3.70",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2022.3.16",
        "path": "c:\\Users\\david\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.3.16",
        "isActive": true
      },
      "nordic-semiconductor.devicetree": null,
      "nordic-semiconductor.kconfig": null
    },
    "external": {
      "marus25.cortex-debug": "1.2.2",
      "ms-vscode.cpptools": "1.9.2",
      "ms-vscode-remote.remote-wsl-recommender": "0.0.14",
      "ms-vscode.js-debug": "1.65.0",
      "ms-vscode.js-debug-companion": "1.0.15",
      "ms-vscode.references-view": "0.0.85",
      "ms-vscode.vscode-js-profile-table": "0.0.18",
      "af4jm.vscode-m3u": "1.0.0",
      "alefragnani.Bookmarks": "13.2.4",
      "alefragnani.project-manager": "12.5.0",
      "amazonwebservices.aws-toolkit-vscode": "1.36.0",
      "cschlosser.doxdocgen": "1.4.0",
      "dbaeumer.vscode-eslint": "2.2.2",
      "felixfbecker.php-intellisense": "2.3.14",
      "GitHub.vscode-pull-request-github": "0.38.0",
      "jeff-hykin.better-cpp-syntax": "1.15.13",
      "lextudio.restructuredtext": "176.0.0",
      "marlinfirmware.auto-build": "2.1.37",
      "ms-azuretools.vscode-docker": "1.20.0",
      "ms-python.python": "2022.2.1924087327",
      "ms-python.vscode-pylance": "2022.3.0",
      "ms-toolsai.jupyter": "2022.2.1030672458",
      "ms-toolsai.jupyter-keymap": "1.0.0",
      "ms-toolsai.jupyter-renderers": "1.0.6",
      "ms-vscode-remote.remote-containers": "0.224.2",
      "ms-vscode-remote.remote-ssh": "0.76.1",
      "ms-vscode-remote.remote-ssh-edit": "0.76.1",
      "ms-vscode-remote.remote-wsl": "0.64.2",
      "ms-vscode-remote.vscode-remote-extensionpack": "0.21.0",
      "ms-vscode.cpptools-extension-pack": "1.1.0",
      "ms-vscode.cpptools-themes": "1.0.0",
      "ms-vsliveshare.vsliveshare": "1.0.5418",
      "ms-vsliveshare.vsliveshare-audio": "0.1.91",
      "nobuhito.printcode": "3.0.0",
      "paragdiwan.gitpatch": "0.2.1",
      "platformio.platformio-ide": "2.4.2",
      "redhat.java": "1.4.0",
      "redhat.vscode-yaml": "1.5.1",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "trond-snekvik.simple-rst": "1.5.2",
      "VisualStudioExptTeam.vscodeintellicode": "1.2.17",
      "vscjava.vscode-java-debug": "0.38.0",
      "vscjava.vscode-java-dependency": "0.19.0",
      "vscjava.vscode-java-pack": "0.22.0",
      "vscjava.vscode-java-test": "0.34.2",
      "vscjava.vscode-maven": "0.35.1",
      "xdebug.php-debug": "1.25.0",
      "xdebug.php-pack": "1.0.3",
      "ZixuanWang.linkerscript": "1.0.2",
      "zobo.php-intellisense": "1.0.5"
    }
  },
  "tools": {
    "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.62",
    "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.2",
    "C:\\Users\\david\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\nrfutil.exe": null,
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\python.exe": "3.8.2",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\gperf.exe": "3.1",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\gn.exe": "1959",
    "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
  },
  "sdks": [
    {
      "version": "1.4.0",
      "path": "c:\\Users\\david\\ncs\\v1.4.0"
    },
    {
      "version": "1.4.2",
      "path": "c:\\Users\\david\\ncs\\v1.4.2"
    },
    {
      "version": "1.4.99-dev1",
      "path": "c:\\Users\\david\\ncs\\v1.4.99-dev1"
    },
    {
      "version": "1.5.0",
      "path": "c:\\Users\\david\\ncs\\v1.5.0"
    },
    {
      "version": "1.5.1",
      "path": "c:\\Users\\david\\ncs\\v1.5.1"
    },
    {
      "version": "1.6.1",
      "path": "c:\\Users\\david\\ncs\\v1.6.1"
    },
    {
      "version": "1.7.0",
      "path": "c:\\Users\\david\\ncs\\v1.7.0"
    },
    {
      "version": "1.7.1",
      "path": "c:\\Users\\david\\ncs\\v1.7.1"
    },
    {
      "version": "1.8.0",
      "path": "c:\\Users\\david\\ncs\\v1.8.0"
    },
    {
      "version": "1.9.0",
      "path": "c:\\Users\\david\\ncs\\v1.9.0"
    }
  ],
  "toolchains": [
    {
      "version": "1.4.0",
      "path": "c:\\Users\\david\\ncs\\v1.4.0\\toolchain"
    },
    {
      "version": "1.4.2",
      "path": "c:\\Users\\david\\ncs\\v1.4.2\\toolchain"
    },
    {
      "version": "1.4.0",
      "path": "c:\\Users\\david\\ncs\\v1.4.99-dev1\\toolchain"
    },
    {
      "version": "1.5.0",
      "path": "c:\\Users\\david\\ncs\\v1.5.0\\toolchain"
    },
    {
      "version": "1.5.1",
      "path": "c:\\Users\\david\\ncs\\v1.5.1\\toolchain"
    },
    {
      "version": "1.6.1",
      "path": "c:\\Users\\david\\ncs\\v1.6.1\\toolchain"
    },
    {
      "version": "1.7.0",
      "path": "c:\\Users\\david\\ncs\\v1.7.0\\toolchain"
    },
    {
      "version": "1.7.1",
      "path": "c:\\Users\\david\\ncs\\v1.7.1\\toolchain"
    },
    {
      "version": "1.8.0",
      "path": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain"
    },
    {
      "version": "1.9.0",
      "path": "c:\\Users\\david\\ncs\\v1.9.0\\toolchain"
    }
  ],
  "connectedDevices": [
    {
      "serialNumber": "850100615"
    }
  ],
  "deviceProviders": [
    "nrfjprog"
  ],
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "${nrf-connect.sdk:1.8.0}",
      "toolchain": {
        "path": "${nrf-connect.toolchain:1.8.0}"
      },
      "ozonePath": "",
      "applications": [
        "c:\\Clients\\XXX\\XXXProto\\firmware\\device100"
      ],
      "kconfig": {
        "interface": "kconfig"
      },
      "welcome": {
        "showOnStartup": false
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "enableTelemetry": false
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character"
    },
    "nordic-semiconductor.devicetree": {
      "modules": [
        "${zephyrBase}",
        "${zephyrBase}/../nrf",
        "."
      ],
      "zephyr": "/cygdrive/c/Users/david/ncs/v1.8.0/zephyr",
      "ctxFile": "",
      "defaultBoard": "",
      "west": "/cygdrive/c/Users/david/ncs/v1.8.0/toolchain/opt/bin/Scripts/west"
    },
    "nordic-semiconductor.kconfig": {
      "root": "",
      "env": {},
      "cfiles": true,
      "disable": false,
      "zephyr": {
        "base": "c:\\Users\\david\\ncs\\v1.7.0\\zephyr",
        "west": "c:\\Users\\david\\ncs\\v1.7.0\\toolchain\\opt\\bin\\Scripts\\west.exe",
        "board": {
          "board": "gc_p1_nrf52840",
          "arch": "arm",
          "dir": "c:\\Clients\\XXX\\XXXProto\\firmware\\device100\\boards\\arm\\gc_p1_nrf52840"
        }
      },
      "python": "",
      "liveValue": true
    },
    "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,
      "flattenAnonymous": false,
      "registerUseNaturalFormat": true,
      "variableUseNaturalFormat": false,
      "dbgServerLogfile": null,
      "showDevDebugOutput": "none"
    }
  },
  "environment": {
    "westExe": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\Scripts\\west.exe",
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\SPB_Data",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\david",
      "Path": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\mingw64\\bin;c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\mingw64\\libexec\\git-core;c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin;c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\Scripts;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\AdoptOpenJDK\\jre-11.0.10.9-openj9\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\SlickEdit Pro 21.0.3\\win\\;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Go\\bin;C:\\Program Files (x86)\\GitExtensions\\;C:\\Program Files (x86)\\Gpg4win\\..\\GnuPG\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\Amazon\\AWSSAMCLI\\bin\\;C:\\Program Files (x86)\\Bitvise SSH Client;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\GNU Tools Arm Embedded\\9 2019-q4-major\\bin;C:\\Users\\david\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\;C:\\Users\\david\\AppData\\Local\\Programs\\Python\\Python36\\;C:\\Users\\david\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\david\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.6.0_45\\bin;C:\\cygwin64\\bin;C:\\Users\\david\\AppData\\Roaming\\npm;C:\\Users\\david\\go\\bin;C:\\Program Files (x86)\\Nmap",
      "ZEPHYR_BASE": "c:\\Users\\david\\ncs\\v1.8.0\\zephyr",
      "GNUARMEMB_TOOLCHAIN_PATH": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt",
      "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
      "PYTHONPATH": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin;c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\Lib;c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin\\Lib\\site-packages",
      "Python3_ROOT": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin"
    },
    "toolchainPath": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain",
    "toolchainBinPath": "c:\\Users\\david\\ncs\\v1.8.0\\toolchain\\opt\\bin",
    "toolchainVersion": "1.8.0"
  },
  "terminal": {
    "shell": null,
    "defaultProfile": null
  }
}

Parents
  • Hi

    This issue is still being looked into, but I have an update: 

    The No devices connected error message seems to come when there are no devices to pick from on the computer, which is odd, since we clearly see the same information on the CONNECTED DEVICES sidebar. I assume you aren't disconnecting the device before trying to flash? We also have a mechanism to filter down devices to pick from but I don't see why that would be in effect here.

    It would be nice to know if you're clicking flash in the "Devices" panel or the "Actions" panel, and whether either works or if they both fail.

  • I think it is odd too, looks like it should be working, but it doesn't and it was at some time in the past.  The failure is when pressing flash under actions.

    Under Connected devices I only see icons for RTT terminal, Erase Board, Recover Board and Reset Board.  These seem to not apply to the chip, but the Segger (or dev board), so I am hesitant to try these items. 

    So if my understanding is correct, then there is not an equivalent command under "Devices"?

Reply
  • I think it is odd too, looks like it should be working, but it doesn't and it was at some time in the past.  The failure is when pressing flash under actions.

    Under Connected devices I only see icons for RTT terminal, Erase Board, Recover Board and Reset Board.  These seem to not apply to the chip, but the Segger (or dev board), so I am hesitant to try these items. 

    So if my understanding is correct, then there is not an equivalent command under "Devices"?

Children
Related