Problem with device management in NRF for Vscode April 2023 release

nrf52840 | NCS v2.0.0

Hi,

I recently updated to the new version of NRF Connect for VsCode and am now on the April 2023 release. My J-link device is no longer showing up under connected devices. I see that the device management tool was changed to something else, but it seems to not be working out of the box. I am no longer able to program my device or use RTT. I know that I can flash and see RTT output by using the bare J-link utilities but I would like to get it working in Vscode again as it seems the changes this update brings are quite handy.

Thanks for any help!

Edit: I've tried everything the changelog suggested, and can confirm that changing my device manager back to "nrfjprog' makes everything work as expected. However, I still would like to be able to use nrfUtil going forward.

Parents
  • Hi,

    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.

    Which version of the DK do you have? You can find the version on a sticker on the DK, as shown in the picture below:

    Are you using an external debugger, or only the DK?

    Best regards,

    Marte

  • I'm using an external debugger to interface with our production board which has an NRF52840. With the old system (nrfjprog), even if I didn't hook the debugger up to our board, the Jlink device would still show up. I'm using a J-Link Plus. It works fine with a nrf52840 devkit but doesn't seem to work with external debugger.

    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 Pro",
        "osKernel": "10.0.19045",
        "vscode": "1.77.3",
        "electron": "19.1.11",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2023-04-24T21:30:05.384Z",
        "vscodeRoot": "c:\\Users\\louisb\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:40",
        "osUptime": "00:01:30",
        "cpu": {
          "model": "Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz",
          "speed": "2400 MHz",
          "count": 8
        },
        "memory": {
          "total": "31.72 GB",
          "free": "23.33 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1680119520267",
        "folders": [
          "c:\\OPTIX_PRODUCTION\\optix-emb",
          "c:\\OPTIX_PRODUCTION\\optix-gnss-corrections"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.4.148",
            "path": "c:\\Users\\louisb\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.4.148-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.4.15",
            "path": "c:\\Users\\louisb\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.4.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.4.61",
            "path": "c:\\Users\\louisb\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.4.61",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.4.17",
            "path": "c:\\Users\\louisb\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.4.17",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.10.0",
          "ms-vscode.cpptools": "1.14.5",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
          "ms-vscode.js-debug": "1.77.2",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "alexisvt.flutter-snippets": "3.0.0",
          "cschlosser.doxdocgen": "1.4.0",
          "Dart-Code.dart-code": "3.62.0",
          "Dart-Code.flutter": "3.62.0",
          "hbenl.vscode-test-explorer": "2.21.1",
          "hediet.vscode-drawio": "1.6.6",
          "jeff-hykin.better-cpp-syntax": "1.17.2",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "llldar.vsc-memer": "0.0.4",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.20",
          "mcu-debug.rtos-views": "0.0.6",
          "mhutchie.git-graph": "1.30.0",
          "ms-dotnettools.vscode-dotnet-runtime": "1.6.0",
          "ms-python.isort": "2022.8.0",
          "ms-python.python": "2023.6.1",
          "ms-python.vscode-pylance": "2023.4.30",
          "ms-toolsai.jupyter": "2023.3.1201040234",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.8",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
          "ms-vscode-remote.remote-containers": "0.288.1",
          "ms-vscode-remote.remote-ssh": "0.100.0",
          "ms-vscode-remote.remote-wsl": "0.77.0",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.9.11",
          "ms-vscode.remote-explorer": "0.4.0",
          "ms-vscode.test-adapter-converter": "0.1.7",
          "ms-vsliveshare.vsliveshare": "1.0.5862",
          "ms-vsliveshare.vsliveshare-pack": "0.4.0",
          "njpwerner.autodocstring": "0.6.1",
          "nopeslide.vscode-drawio-plugin-mermaid": "0.1.5",
          "redhat.java": "1.17.0",
          "shd101wyy.markdown-preview-enhanced": "0.6.8",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.7",
          "VisualStudioExptTeam.vscodeintellicode": "1.2.30",
          "vscjava.vscode-java-debug": "0.49.1",
          "vscjava.vscode-java-dependency": "0.21.2",
          "vscjava.vscode-java-pack": "0.25.10",
          "vscjava.vscode-java-test": "0.38.2",
          "vscjava.vscode-maven": "0.41.0"
        }
      },
      "tools": {
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.86h",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.2",
        "C:\\ncs\\nrfutil.exe": "7.4.1",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Scripts\\west.exe": "0.13.1",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\gn.exe": "2039",
        "c:\\ncs\\toolchains\\v2.0.0\\mingw64\\bin\\git.exe": "2.26.2.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb-no-py.exe"
      },
      "sdks": [
        {
          "version": "2.0.0",
          "path": "c:\\ncs\\v2.0.0"
        },
        {
          "version": "1.9.1",
          "path": "c:\\ncs\\v1.9.1"
        },
        {
          "version": "2.1.2",
          "path": "c:\\ncs\\v2.1.2"
        },
        {
          "version": "2.3.0",
          "path": "c:\\ncs\\v2.3.0"
        }
      ],
      "toolchains": [
        {
          "version": "1.9.1",
          "path": "c:\\ncs\\v1.9.1\\toolchain"
        },
        {
          "version": "2.0.0",
          "path": "c:\\ncs\\toolchains\\v2.0.0"
        },
        {
          "version": "2.1.2",
          "path": "c:\\ncs\\toolchains\\v2.1.2"
        },
        {
          "version": "2.3.0",
          "path": "c:\\ncs\\toolchains\\v2.3.0"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.0.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.0.0}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": false
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": false,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "scrollBack": 10000
        },
        "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\\louisb",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\louisb",
          "Path": "c:\\ncs\\toolchains\\v2.0.0\\mingw64\\bin;c:\\ncs\\toolchains\\v2.0.0\\mingw64\\libexec\\git-core;c:\\ncs\\toolchains\\v2.0.0\\opt\\bin;c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.0.0\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32/../rtklib_demo5_b34g;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;C://rtklib;C:/rtklib;C:/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;~/rtklib;~/rtklib;C:\\demo5_b34g;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Users\\louisb\\AppData\\Local\\Microsoft\\WindowsApps;C:\\msys64\\mingw64\\bin;C:\\ncs\\v1.9.1\\toolchain\\segger_embedded_studio\\gcc\\arm-none-eabi\\bin;C:\\Users\\louisb\\go\\bin;C:\\Users\\louisb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\flutter_windows_3.0.5-stable\\flutter\\bin;C:\\Program Files\\pypy3.9-v7.3.9-win64;C:\\ncs;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.0.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin;c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Lib;c:\\ncs\\toolchains\\v2.0.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\ncs\\toolchains\\v2.0.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\louisb",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\louisb",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32/../rtklib_demo5_b34g;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;C://rtklib;C:/rtklib;C:/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;~/rtklib;~/rtklib;C:\\demo5_b34g;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Users\\louisb\\AppData\\Local\\Microsoft\\WindowsApps;C:\\msys64\\mingw64\\bin;C:\\ncs\\v1.9.1\\toolchain\\segger_embedded_studio\\gcc\\arm-none-eabi\\bin;C:\\Users\\louisb\\go\\bin;C:\\Users\\louisb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\flutter_windows_3.0.5-stable\\flutter\\bin;C:\\Program Files\\pypy3.9-v7.3.9-win64;C:\\ncs;",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32/../rtklib_demo5_b34g;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;~/rtklib;C://rtklib;C:/rtklib;C:/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;C:/Program Files/rtklib;~/rtklib;~/rtklib;C:\\demo5_b34g;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Go\\bin;C:\\Users\\louisb\\AppData\\Local\\Microsoft\\WindowsApps;C:\\msys64\\mingw64\\bin;C:\\ncs\\v1.9.1\\toolchain\\segger_embedded_studio\\gcc\\arm-none-eabi\\bin;C:\\Users\\louisb\\go\\bin;C:\\Users\\louisb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\flutter_windows_3.0.5-stable\\flutter\\bin;C:\\Program Files\\pypy3.9-v7.3.9-win64;C:\\ncs;"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\v2.0.0",
        "toolchainBinPath": "c:\\ncs\\toolchains\\v2.0.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.0.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

  • Hi,

    Thank you for sharing the logs.

    The developers have released a fix for the issue. Please update the extension, and let me know if you still experience issues with the latest version.

    Best regards,
    Marte

Reply Children
Related