nRF Connect for VS Code v2023.9.336 cannot find devices

Hi,

I updated to the latest nRF Connect for VS Code extension version - v2023.9.336 and noticed that "CONNECTED DEVICES" is always empty. Refresh/restart - no help. Devices that used to show there, are now gone (for ex. nRF52840 DK).

Everything shows Ok in the nRF Programmer.

I reverted back to version v2023.7.129 and "CONNECTED DEVICES" started working again.

Is there something special that needs to be configured with the latest version of the extension? Or is this a bug?

Thank you,

D.

  • Could you please run the "Generate Support Information" command, so that we can get some information about their system?

  • Here is the support information:

    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 devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Enterprise",
    "osKernel": "10.0.19044",
    "vscode": "1.82.2",
    "electron": "25.8.1",
    "node": "v18.15.0"
    },
    "system": {
    "date": "2023-10-05T10:35:11.125Z",
    "vscodeRoot": "c:\\Users\\8\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:00:56",
    "osUptime": "110:20:00",
    "cpu": "Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz"
    },
    "workspace": {
    "name": "hello_world",
    "workspaceFile": null,
    "folders": [
    "z:\\tmp\\vscode-test\\hw\\hello_world"
    ]
    },
    "sdks": [
    {
    "version": "2.2.0",
    "path": "c:\\nordic\\ncs\\v2.2.0"
    },
    {
    "version": "2.3.0",
    "path": "c:\\nordic\\ncs\\v2.3.0"
    }
    ],
    "apps": [
    {
    "workspace": "z:\\tmp\\vscode-test\\hw\\hello_world",
    "uri": "z:\\tmp\\vscode-test\\hw\\hello_world",
    "buildConfigurations": []
    }
    ],
    "topdir": "c:\\nordic\\ncs\\v2.2.0",
    "workspaceState": "freestanding-ready",
    "toolchains": [
    {
    "version": "2.2.0",
    "path": "c:\\nordic\\ncs\\toolchains\\v2.2.0"
    },
    {
    "version": "2.3.0",
    "path": "c:\\nordic\\ncs\\toolchains\\v2.3.0"
    }
    ],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "tools": {
    "C:\\nordic\\ncs\\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.92g",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.23.0",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfutil.exe": "7.6.0",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\cmake.exe": "3.20.5",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\python.exe": "3.8.2",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\ninja.exe": "1.9.0",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\gperf.exe": "3.1",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\gn.exe": "2073",
    "C:\\nordic\\ncs\\toolchains\\v2.2.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "gdbPath": "c:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\8",
    "HOMEDRIVE": "H:",
    "HOMEPATH": "\\",
    "PATH": "C:\\nordic\\ncs\\toolchains\\v2.2.0;C:\\nordic\\ncs\\toolchains\\v2.2.0\\mingw64\\bin;C:\\nordic\\ncs\\toolchains\\v2.2.0\\bin;C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin;C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Scripts;C:\\nordic\\ncs\\toolchains\\v2.2.0\\nanopb\\generator-bin;C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\Users\\8\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.9.336-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Users\\8\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C;C:\\Program Files\\dotnet\\;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 (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\8\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\8\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\8\\.dotnet\\tools;C:\\Users\\8\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;",
    "ZEPHYR_BASE": "c:\\nordic\\ncs\\v2.2.0\\zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk",
    "PYTHONPATH": "C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin;C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Lib;C:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\8",
    "HOMEDRIVE": "H:",
    "HOMEPATH": "\\",
    "Path": "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Users\\8\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C;C:\\Program Files\\dotnet\\;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 (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\8\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\8\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\8\\.dotnet\\tools;C:\\Users\\8\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;",
    "PATH": "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Users\\8\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C;C:\\Program Files\\dotnet\\;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 (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\8\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\8\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\8\\.dotnet\\tools;C:\\Users\\8\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;"
    },
    "toolchainPath": "c:\\nordic\\ncs\\toolchains\\v2.2.0",
    "toolchainBinPath": "c:\\nordic\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
    "toolchainVersion": "2.2.0"
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${nrf-connect.sdk:2.2.0}",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.2.0}"
    },
    "ozonePath": "",
    "applications": [],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": true
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "debugging": {
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "nrfutil",
    "enableTelemetry": false,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask"
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    },
    "marus25.cortex-debug": {
    "variableUseNaturalFormat": true,
    "liveWatchRefreshRate": "300",
    "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": false,
    "dbgServerLogfile": null
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.9.336",
    "path": "c:\\Users\\8\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.9.336-win32-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2023.9.29",
    "path": "c:\\Users\\8\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.9.29",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2023.9.57",
    "path": "c:\\Users\\8\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.9.57",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2023.9.94",
    "path": "c:\\Users\\8\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.9.94",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.12.1",
    "ms-vscode.cpptools": "1.17.5",
    "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
    "ms-vscode.js-debug": "1.82.0",
    "ms-vscode.js-debug-companion": "1.1.2",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "eamodio.gitlens": "14.3.0",
    "epivision.vscode-file-header": "1.0.8",
    "keroc.hex-fmt": "1.0.0",
    "mcu-debug.debug-tracker-vscode": "0.0.15",
    "mcu-debug.memory-view": "0.0.24",
    "mcu-debug.peripheral-viewer": "1.4.6",
    "mcu-debug.rtos-views": "0.0.7",
    "ms-vscode.cmake-tools": "1.15.31",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.hexeditor": "1.9.12",
    "streetsidesoftware.code-spell-checker": "3.0.1",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "xiaoyongdong.srecord": "0.0.5",
    "ZainChen.json": "2.0.2"
    }
    }
    }

  • Hello,

    I have asked team to look at the infromation generated from VS Code. I will get back to you soon.

    Thanks.

    BR

    Kazi

  • Hello,

     As a quick fix, you can change the "nrf-connect.deviceProvider" configuration value to "nrfjprog", and then the devices should show.

    However, it should work by default, so it would be useful to know whether the bug is with nrfutil or with the VS Code extension. Could you try running "nrfutil device list" in the command line and see if that picks up the devices?

  • Hello,

    Setting "nrf-connect.deviceProvider" to "nrfjprog" fixed the issue.

    When I run "nrfutil list", from a command prompt, it prints this:

    Found 0 installed command(s)

    In the nrfutil log, it creates a single line:

    [2023-11-09T18:47:42.409Z] [nrfutil] INFO - nrfutil (version = 7.6.0, platform = x86_64-pc-windows-msvc) invoked with list 

    I guess no commands installed is not normal?

    BTW, extension v2023.11.24 has the same issue - no devices are shown.

    Programmer, v4.0.1 lists the devices properly.

    Thank you,

    D.

Related