VS Code freezes on pristine builds

Hi.  Last project was on v2.4.x and returning for a new one after loving the platform previously.  However, the VS Code dev environment seems far less stable that it was 2 years ago.  There are a number of small things but by far the most troublesome is that after approx 50% of pristine builds (or those after changing device tree or prj.conf) VS Code latches up and is unresponsive.   Have to end task it and relaunch costing me a lot of time restarting debug sessions. Does not seem to matter if the build is launched via "Build", "Flash" or "Debug". Been using it again for about 3 months and feels like this issue has appeared in the last month or so. 

I have deleted the build folder for a clean slate, even recloned the repo.  I just have the recommended extensions all latest (list below) and SDK and toolchain 3.1.1.  VS Code is latest, 

Thanks in advance.

Version: 1.111.0 (user setup)
Commit: ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
Date: 2026-03-06T23:06:10Z
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Parents Reply Children
  • // 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 https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.26200",
        "vscode": "1.111.0",
        "electron": "39.6.0",
        "node": "v22.22.0",
        "appName": "Visual Studio Code",
        "appHost": "desktop"
      },
      "system": {
        "date": "2026-03-17T00:05:10.101Z",
        "vscodeRoot": "c:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code\\ce099c1ed2\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:17",
        "osUptime": "104:35:09",
        "cpu": "Intel(R) Core(TM) Ultra 7 155H"
      },
      "workspace": {
        "name": "xxxx-firmware",
        "workspaceFile": null,
        "folders": [
          "c:\\ncs\\apps\\xxxx\\xxxx-firmware"
        ]
      },
      "sdks": [
        {
          "version": "v3.1.1",
          "path": "c:\\ncs\\v3.1.1"
        },
        {
          "version": "v2.4.4",
          "path": "c:\\ncs\\v2.4.4"
        },
        {
          "version": "v2.4.1",
          "path": "c:\\ncs\\v2.4.1"
        }
      ],
      "activeBuild": "/ncs/apps/xxxx/xxxx-firmware/build/xxxx-firmware",
      "apps": [
        {
          "workspace": "c:\\ncs\\apps\\xxxx\\xxxx-firmware",
          "uri": "c:\\ncs\\apps\\xxxx\\xxxx-firmware",
          "buildConfigurations": [
            {
              "id": "/ncs/apps/xxxx/xxxx-firmware/build",
              "name": "build",
              "boardId": "xxxxdev/nrf5340/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.1.1",
              "toolchain": "nRF Connect SDK Toolchain v3.1.1"
            },
            {
              "id": "/ncs/apps/xxxx/xxxx-firmware/build/xxxx-firmware",
              "name": "build/xxxx-firmware",
              "boardId": "xxxxdev/nrf5340/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.1.1",
              "toolchain": "nRF Connect SDK Toolchain v3.1.1"
            },
            {
              "id": "/ncs/apps/xxxx/xxxx-firmware/build/ipc_radio",
              "name": "build/ipc_radio",
              "boardId": "xxxxdev/nrf5340/cpunet",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v3.1.1",
              "toolchain": "nRF Connect SDK Toolchain v3.1.1"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "3.1.1",
          "path": "c:\\ncs\\toolchains\\c1a76fddb2",
          "displayName": "nRF Connect SDK Toolchain v3.1.1",
          "compilerTools": [
            "Zephyr SDK (arm) 0.17.0",
            "Zephyr SDK (riscv) 0.17.0"
          ]
        },
        {
          "version": "2.4.4",
          "path": "c:\\ncs\\toolchains\\31f4403e35",
          "displayName": "nRF Connect SDK Toolchain v2.4.4",
          "compilerTools": [
            "Zephyr SDK (arm) 0.16.0",
            "Zephyr SDK (riscv) 0.16.0"
          ]
        },
        {
          "version": "2.4.1",
          "path": "c:\\ncs\\toolchains\\31f4403e35",
          "displayName": "nRF Connect SDK Toolchain v2.4.1",
          "compilerTools": [
            "Zephyr SDK (arm) 0.16.0",
            "Zephyr SDK (riscv) 0.16.0"
          ]
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000960124040",
          "boardVersion": "PCA10095",
          "deviceFamily": "NRF53_FAMILY",
          "deviceName": "nRF5340",
          "deviceVersion": "NRF5340_xxAA_REV1",
          "jlinkObFirmwareVersion": "J-Link OB-K22-NordicSemi compiled Nov 19 2025 16:52:59",
          "protectionStatus": "NRFDL_PROTECTION_STATUS_NONE",
          "protectionStatusCore": "NRFDL_DEVICE_CORE_APPLICATION"
        },
        {
          "serialNumber": "FTE5VFKI"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V924a\\JLink.exe": "9.24a",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\ncs\\toolchains\\c1a76fddb2\\nrfutil": "8.1.1",
        "C:\\ncs\\toolchains\\c1a76fddb2\\nrfutil\\home\\bin\\nrfutil-device.exe": "2.13.2",
        "C:\\ncs\\toolchains\\c1a76fddb2\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\Scripts\\west.exe": "1.4.0",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\python.exe": "3.12.4",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\gn.exe": "2223",
        "C:\\ncs\\toolchains\\c1a76fddb2\\mingw64\\bin\\git.exe": "git version 2.37.3.",
        "debugger (arm)": "c:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "debugger (riscv)": "c:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.17.1",
          "binPath": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-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.76",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V9.24a",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.11.0",
          "binPath": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\xxxx",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\xxxx",
          "PATH": "C:\\ncs\\toolchains\\c1a76fddb2;C:\\ncs\\toolchains\\c1a76fddb2\\mingw64\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\Scripts;c:/ncs/toolchains/c1a76fddb2\\opt/nanopb/generator-bin;C:\\ncs\\toolchains\\c1a76fddb2\\nrfutil\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code;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\\150\\Tools\\Binn\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\7-Zip;C:\\Program Files\\doxygen\\bin;C:\\MinGW\\bin;C:\\Program Files\\WiX Toolset v6.0\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Ruby34-x64\\bin;C:\\Users\\xxxx\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\xxxx\\.dotnet\\tools;C:\\Users\\xxxx\\Infineon\\LauncherService;C:\\Users\\xxxx\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;C:\\Program Files\\LLVM\\bin;C:\\Users\\xxxx\\AppData\\Local\\Python\\bin;",
          "ZEPHYR_BASE": "c:\\ncs\\v3.1.1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\c1a76fddb2\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\c1a76fddb2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\xxxx",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\xxxx",
          "Path": "C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code;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\\150\\Tools\\Binn\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\7-Zip;C:\\Program Files\\doxygen\\bin;C:\\MinGW\\bin;C:\\Program Files\\WiX Toolset v6.0\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Ruby34-x64\\bin;C:\\Users\\xxxx\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\xxxx\\.dotnet\\tools;C:\\Users\\xxxx\\Infineon\\LauncherService;C:\\Users\\xxxx\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;C:\\MinGW\\bin;C:\\Program Files\\LLVM\\bin;C:\\Users\\xxxx\\AppData\\Local\\Python\\bin;",
          "PATH": "C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code;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\\150\\Tools\\Binn\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\7-Zip;C:\\Program Files\\doxygen\\bin;C:\\MinGW\\bin;C:\\Program Files\\WiX Toolset v6.0\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Ruby34-x64\\bin;C:\\Users\\xxxx\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\xxxx\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\xxxx\\.dotnet\\tools;C:\\Users\\xxxx\\Infineon\\LauncherService;C:\\Users\\xxxx\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;C:\\MinGW\\bin;C:\\Program Files\\LLVM\\bin;C:\\Users\\xxxx\\AppData\\Local\\Python\\bin;"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "west": {
            "env": {
              "$base": "terminal"
            },
            "verbose": ""
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {
              "${workspaceFolder}/build/dev": "Launch dev"
            },
            "justMyCode": false,
            "focusOnNrfDebug": true
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "sdkManager": {
            "region": "default"
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": {}
          },
          "remoteDevices": [],
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.7.0}"
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "localEcho": false
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2026.3.1484",
            "path": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2026.3.273",
            "path": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2026.3.273",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2026.3.617",
            "path": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2026.3.617",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2026.1.230",
            "path": "c:\\Users\\xxxx\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2026.1.230",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.30.5",
          "ms-vscode.js-debug": "1.110.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "ms-vscode.cpptools-extension-pack": "1.5.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

Related