Problem with Flash and Debug in VS code

Has anyone experienced the following error when Flashing (and debugging) from within VS Code. I have no idea what has happened, but it has hit several projects.

Even though it claims that flash has been programmed in last line, this is not true. Using Debug with Ozone will program the flash correctly.

-- west flash: using runner nrfutil
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: D:\Workspaces\azure_iot_hub_8\build\merged.hex
Traceback (most recent call last):
File "C:\Users\ThomasMaltesen\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\nrfutil-script.py", line 6, in <module>
from pkg_resources import load_entry_point
File "D:\ncs\toolchains\0b393f9e1b\opt\bin\Lib\site-packages\pkg_resources\__init__.py", line 74
sys.path.extend(((vendor_path := os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools', '_vendor')) not in sys.path) * [vendor_path]) # fmt: skip
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "C:\Users\ThomasMaltesen\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\nrfutil-script.py", line 6, in <module>
from pkg_resources import load_entry_point
File "D:\ncs\toolchains\0b393f9e1b\opt\bin\Lib\site-packages\pkg_resources\__init__.py", line 74
sys.path.extend(((vendor_path := os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools', '_vendor')) not in sys.path) * [vendor_path]) # fmt: skip
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "C:\Users\ThomasMaltesen\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\nrfutil-script.py", line 6, in <module>
from pkg_resources import load_entry_point
File "D:\ncs\toolchains\0b393f9e1b\opt\bin\Lib\site-packages\pkg_resources\__init__.py", line 74
sys.path.extend(((vendor_path := os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools', '_vendor')) not in sys.path) * [vendor_path]) # fmt: skip
^
SyntaxError: invalid syntax
-- runners.nrfutil: Board with serial number 852006397 flashed successfully.

Parents Reply Children
  • Hmmm

    PS D:\ncs> nrfutil self-upgrade
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try 'nrfutil --help' for help.

    Error: No such command 'self-upgrade'.

    PS D:\ncs> nrfutil upgrade
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try 'nrfutil --help' for help.

    Error: No such command 'upgrade'.

    PS D:\ncs> nrfutil version
    nrfutil version 6.1.0

  • // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.

    // For help and support, visit Nordic Semiconductor's DevZone at devzone.nordicsemi.com/.

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.27842",
        "vscode": "1.99.3",
        "electron": "34.3.2",
        "node": "v20.18.3"
      },
      "system": {
        "date": "2025-05-05T14:24:10.393Z",
        "vscodeRoot": "c:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:21",
        "osUptime": "279:32:36",
        "cpu": "Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz"
      },
      "workspace": {
        "name": "azure_iot_hub_7",
        "workspaceFile": null,
        "folders": [
          "d:\\Workspaces\\azure_iot_hub_7"
        ]
      },
      "sdks": [
        {
          "version": "v3.0.0",
          "path": "d:\\ncs\\v3.0.0"
        },
        {
          "version": "v2.9.1",
          "path": "d:\\ncs\\v2.9.1"
        },
        {
          "version": "v2.9.0",
          "path": "d:\\ncs\\v2.9.0"
        },
        {
          "version": "v2.8.0",
          "path": "d:\\ncs\\v2.8.0"
        },
        {
          "version": "v2.7.0",
          "path": "d:\\ncs\\v2.7.0"
        },
        {
          "version": "v2.6.3",
          "path": "d:\\ncs\\v2.6.3"
        },
        {
          "version": "v2.6.1",
          "path": "d:\\ncs\\v2.6.1"
        }
      ],
      "activeBuild": "d:\\Workspaces\\azure_iot_hub_7\\build\\azure_iot_hub_7",
      "apps": [
        {
          "workspace": "d:\\Workspaces\\azure_iot_hub_7",
          "uri": "d:\\Workspaces\\azure_iot_hub_7",
          "buildConfigurations": [
            {
              "id": "d:\\Workspaces\\azure_iot_hub_7\\build",
              "name": "build",
              "boardId": "pmi8004/nrf9151/ns",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "d:\\ncs\\v3.0.0",
              "toolchain": "nRF Connect SDK Toolchain v3.0.0"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "3.0.0",
          "path": "d:\\ncs\\toolchains\\0b393f9e1b"
        },
        {
          "version": "2.9.1",
          "path": "d:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.9.0",
          "path": "d:\\ncs\\toolchains\\b620d30767"
        },
        {
          "version": "2.8.0",
          "path": "d:\\ncs\\toolchains\\2d382dcd92"
        },
        {
          "version": "2.7.0",
          "path": "d:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.4",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.6.3",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.6.2",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.6.1",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.6.0",
          "path": "d:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.5.3",
          "path": "d:\\ncs\\toolchains\\c57af46cb7"
        },
        {
          "version": "2.5.2",
          "path": "d:\\ncs\\toolchains\\c57af46cb7"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000852006397"
        }
      ],
      "tools": {
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V810k\\JLink.exe": "8.10k",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts\\nrfutil.exe": null,
        "D:\\ncs\\toolchains\\0b393f9e1b\\cmake": "3.21.0",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\python.exe": "3.12.4",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\ninja.exe": "1.10.2",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\gperf.exe": "3.1",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\dtc.exe": "1.4.7",
        "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\gn.exe": "2223",
        "D:\\ncs\\toolchains\\0b393f9e1b\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "d:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.8.8",
          "binPath": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.186-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
            "expectedVersion": {
              "version": "JLink_V8.18",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.10k",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.2.0",
          "binPath": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.186-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\ThomasMaltesen",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ThomasMaltesen",
          "PATH": "D:\\ncs\\toolchains\\0b393f9e1b;D:\\ncs\\toolchains\\0b393f9e1b\\mingw64\\bin;D:\\ncs\\toolchains\\0b393f9e1b\\bin;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\Scripts;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\nanopb\\generator-bin;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.186-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\Scripts\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files\\Microsoft\\jdk-11.0.16.101-hotspot\\bin;C:\\Program Files\\Eclipse Foundation\\jdk-8.0.302.8-hotspot\\bin;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files (x86)\\msb-4.6.7;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\msb-4.6.8;C:\\SysGCC\\arm-eabi\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files (x86)\\msb-5.0.2;C:\\Program Files (x86)\\msb-5.0.5;C:\\Program Files (x86)\\LonWorks\\Drivers\\FTDI\\amd64;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Echelon\\License Tools\\;C:\\Program Files (x86)\\LonWorks\\bin;C:\\Program Files (x86)\\msb-5.0.11;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\Intel\\Intel(R) Memory and Storage Tool\\;C:\\Program Files (x86)\\msb-6.0.1;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files (x86)\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\msb-7.0.2;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Microsoft SQL Server\\160\\DTS\\Binn\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\ThomasMaltesen\\.dotnet\\tools;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Azure Data Studio\\bin;C:\\Program Files\\Digi\\AnywhereUSBManager\\;C:\\Users\\ThomasMaltesen\\AppData\\Roaming\\npm;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "d:\\ncs\\v3.0.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\zephyr-sdk",
          "PYTHONPATH": "D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\Lib;D:\\ncs\\toolchains\\0b393f9e1b\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\ThomasMaltesen",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\ThomasMaltesen",
          "Path": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\Scripts\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files\\Microsoft\\jdk-11.0.16.101-hotspot\\bin;C:\\Program Files\\Eclipse Foundation\\jdk-8.0.302.8-hotspot\\bin;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files (x86)\\msb-4.6.7;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\msb-4.6.8;C:\\SysGCC\\arm-eabi\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files (x86)\\msb-5.0.2;C:\\Program Files (x86)\\msb-5.0.5;C:\\Program Files (x86)\\LonWorks\\Drivers\\FTDI\\amd64;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Echelon\\License Tools\\;C:\\Program Files (x86)\\LonWorks\\bin;C:\\Program Files (x86)\\msb-5.0.11;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\Intel\\Intel(R) Memory and Storage Tool\\;C:\\Program Files (x86)\\msb-6.0.1;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files (x86)\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\msb-7.0.2;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Microsoft SQL Server\\160\\DTS\\Binn\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\ThomasMaltesen\\.dotnet\\tools;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Azure Data Studio\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\ThomasMaltesen\\.dotnet\\tools;C:\\Program Files\\Digi\\AnywhereUSBManager\\;C:\\Users\\ThomasMaltesen\\AppData\\Roaming\\npm;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\Scripts\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python39_64\\;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files\\Microsoft\\jdk-11.0.16.101-hotspot\\bin;C:\\Program Files\\Eclipse Foundation\\jdk-8.0.302.8-hotspot\\bin;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\Scripts;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files (x86)\\msb-4.6.7;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\msb-4.6.8;C:\\SysGCC\\arm-eabi\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files (x86)\\msb-5.0.2;C:\\Program Files (x86)\\msb-5.0.5;C:\\Program Files (x86)\\LonWorks\\Drivers\\FTDI\\amd64;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Echelon\\License Tools\\;C:\\Program Files (x86)\\LonWorks\\bin;C:\\Program Files (x86)\\msb-5.0.11;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\Intel\\Intel(R) Memory and Storage Tool\\;C:\\Program Files (x86)\\msb-6.0.1;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files (x86)\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\msb-7.0.2;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Microsoft SQL Server\\160\\DTS\\Binn\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Python\\Python38-32\\;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\ThomasMaltesen\\.dotnet\\tools;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Azure Data Studio\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\ThomasMaltesen\\.dotnet\\tools;C:\\Program Files\\Digi\\AnywhereUSBManager\\;C:\\Users\\ThomasMaltesen\\AppData\\Roaming\\npm;C:\\Users\\ThomasMaltesen\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [
            "d:\\nrfboards"
          ],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": "d:\\ncs"
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          },
          "welcome": {
            "showOnStartup": false
          }
        },
        "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": true,
          "dbgServerLogfile": null
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.4.186",
            "path": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.186-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2025.4.22",
            "path": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2025.4.22",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2025.4.26",
            "path": "c:\\Users\\ThomasMaltesen\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2025.4.26",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.25.3",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "coolbear.systemd-unit-file": "1.0.6",
          "cschlosser.doxdocgen": "1.4.0",
          "docker.docker": "0.6.0",
          "eamodio.gitlens": "17.0.3",
          "george-alisson.html-preview-vscode": "0.2.5",
          "GitHub.copilot": "1.312.0",
          "GitHub.copilot-chat": "0.26.7",
          "jeff-hykin.better-cpp-syntax": "1.27.1",
          "jock.svg": "1.5.4",
          "mads-hartmann.bash-ide-vscode": "1.43.0",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.25",
          "mcu-debug.peripheral-viewer": "1.4.6",
          "mcu-debug.rtos-views": "0.0.7",
          "mechatroner.rainbow-csv": "3.19.0",
          "microhobby.linuxkerneldev": "0.6.1",
          "ms-azuretools.vscode-azure-github-copilot": "0.3.265",
          "ms-azuretools.vscode-azurefunctions": "1.17.2",
          "ms-azuretools.vscode-azureresourcegroups": "0.10.10",
          "ms-azuretools.vscode-docker": "1.29.6",
          "ms-dotnettools.csdevkit": "1.18.25",
          "ms-dotnettools.csharp": "2.72.34",
          "ms-dotnettools.vscode-dotnet-runtime": "2.3.3",
          "ms-dotnettools.vscodeintellicode-csharp": "2.2.3",
          "ms-python.debugpy": "2025.6.0",
          "ms-python.isort": "2025.0.0",
          "ms-python.python": "2025.4.0",
          "ms-python.vscode-pylance": "2025.4.1",
          "ms-toolsai.jupyter": "2025.3.0",
          "ms-toolsai.jupyter-keymap": "1.1.2",
          "ms-toolsai.jupyter-renderers": "1.1.0",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.9",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.6",
          "ms-vscode-remote.remote-containers": "0.409.0",
          "ms-vscode-remote.remote-ssh": "0.119.0",
          "ms-vscode-remote.remote-ssh-edit": "0.87.0",
          "ms-vscode-remote.remote-wsl": "0.99.0",
          "ms-vscode-remote.vscode-remote-extensionpack": "0.26.0",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.powershell": "2025.0.0",
          "ms-vscode.remote-explorer": "0.4.3",
          "ms-vscode.remote-server": "1.5.2",
          "ms-vscode.vscode-serial-monitor": "0.13.1",
          "ms-vsts.team": "1.161.1",
          "msazurermtools.azurerm-vscode-tools": "0.15.15",
          "msjsdiag.debugger-for-edge": "1.0.15",
          "plorefice.devicetree": "0.1.1",
          "RandomFractalsInc.vscode-data-preview": "2.3.0",
          "redhat.vscode-yaml": "1.18.0",
          "TeamsDevApp.ms-teams-vscode-extension": "5.14.1",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "vsciot-vscode.vscode-dtdl": "1.4.1",
          "yocto-project.yocto-bitbake": "2.8.0",
          "ZainChen.json": "2.0.2"
        }
      }
    }


  • Thomas said:
    nrfutil version 6.1.0

    It's quite old, so it doesn't have the upgrade function. 

    Please refer to Installing nRF Util and downloading the nrfutil executable file from the nRF Util product page.

  • I installed latest SDK and latest toolchain from the VS code menu. It was working... It check your link...
    Where would it normally be placed?

  • Latest version is installed and old version removed. 

    But still unable to debug.

    Symptoms have changed, I do not get trace in the output window anymore. Now I just have unexpected GDB output in the DEBUG console.

    I can still program with Ozone but sometimes build fails so I need to run it two times before I have a HEX file.

Related