The "Flash" action from the nRF Connect for VS Code has stopped working.

Hi,

I just reinstalled a fresh version of VS Code 1.96.2, and I'm using v2024.12.55 of the nRF Connect for VS Code extension. I'm also using nRF SDK v2.1.1.

In the past couple months, my "Flash" action has stopped working. I get this error.

However, if I use the "Start New Terminal in the sources of this build" and put "west flash -d c:\repos\master\src\top\mission_mode\build --skip-rebuild --dev-id 52005670", then it works.

I'm not sure why this has stopped working, but I suspect that it was an update to nRF Connect for VS Code.

  • Reported it, will update when I learn more.

    Kenneth

  • One question that came up from our devs now was whether you could upload the support log from VS Code, as that can give an indication to what's wrong here. This can be done by going to the nRF Connect extension in VS Code, and press the small headset symbol in the top right of the nRF Connect sidebar:

    Please upload the file generated here and our devs will take a look.

    Kenneth

  • Certainly, here you are.

    // 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 Enterprise",
        "osKernel": "10.0.22631",
        "vscode": "1.96.2",
        "electron": "32.2.6",
        "node": "v20.18.1"
      },
      "system": {
        "date": "2025-01-08T10:23:50.466Z",
        "vscodeRoot": "c:\\Users\\TylerJosephHuffman\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:01:05",
        "osUptime": "02:43:55",
        "cpu": "Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz"
      },
      "workspace": {
        "name": "master",
        "workspaceFile": null,
        "folders": [
          "c:\\repos\\master"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.1",
          "path": "c:\\ncs\\v2.6.1"
        },
        {
          "version": "v2.5.0",
          "path": "c:\\ncs\\v2.5.0"
        },
        {
          "version": "v2.1.1",
          "path": "c:\\ncs\\v2.1.1"
        },
        {
          "version": "v4.0.99",
          "path": "c:\\repos\\non-c-on-zephyr"
        }
      ],
      "activeBuild": "c:\\repos\\master\\src\\top\\mission_mode\\build",
      "apps": [
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\external\\ble_test\\bluetooth\\direct_test_mode",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\external\\ble_test\\dtm_app_core",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\top\\hybrid_mode",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\top\\mission_mode",
          "buildConfigurations": [
            {
              "id": "c:\\repos\\master\\src\\top\\mission_mode\\build",
              "name": "build",
              "boardId": "[email protected]",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "c:\\ncs\\v2.1.1",
              "toolchain": "nRF Connect SDK Toolchain v2.1.1"
            }
          ]
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\top\\production_test",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\external\\ble_test\\pheripheral\\radio_test",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\repos\\master",
          "uri": "c:\\repos\\master\\src\\external\\ble_test\\radio_test_app_core",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.6.1",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.5.0",
          "path": "c:\\ncs\\toolchains\\c57af46cb7"
        },
        {
          "version": "2.1.1",
          "path": "c:\\ncs\\toolchains\\v2.1.1"
        },
        {
          "version": "0.17.0",
          "path": "c:\\Users\\TylerJosephHuffman\\zephyr-sdk-0.17.0"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000052005670"
        }
      ],
      "tools": {
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
        "C:\\Program Files\\SEGGER\\JLink_V794i\\JLink.exe": "7.94i",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
        "C:\\ncs\\toolchains\\cf2149caf2\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
        "C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.2",
          "binPath": "c:\\Users\\TylerJosephHuffman\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "name": "JlinkARM",
            "version": "JLink_V7.94i",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\TylerJosephHuffman\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\TylerJosephHuffman",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\TylerJosephHuffman",
          "PATH": "C:\\ncs\\toolchains\\cf2149caf2;C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;C:\\ncs\\toolchains\\cf2149caf2\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\TylerJosephHuffman\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\Program Files (x86)\\Pololu\\Maestro\\bin;C:\\Program Files\\Eclipse Adoptium\\jre-17.0.10.7-hotspot\\bin;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files\\Eclipse Adoptium\\jre-21.0.1.12-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ncs\\protoc-3.20.1\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\SEGGER\\JLink_V644e;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files (x86)\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Pandoc\\;C:\\Program Files (x86)\\Vim\\vim90\\;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Microsoft.NuGet_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Program Files\\Neovim\\bin;C:\\Users\\TylerJosephHuffman\\.dotnet\\tools;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "c:\\ncs\\v2.1.1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\TylerJosephHuffman",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\TylerJosephHuffman",
          "Path": "C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\Program Files (x86)\\Pololu\\Maestro\\bin;C:\\Program Files\\Eclipse Adoptium\\jre-17.0.10.7-hotspot\\bin;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files\\Eclipse Adoptium\\jre-21.0.1.12-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ncs\\protoc-3.20.1\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\SEGGER\\JLink_V644e;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files (x86)\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WindowsApps;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Pandoc\\;C:\\Program Files (x86)\\Vim\\vim90\\;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Microsoft.NuGet_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Program Files\\Neovim\\bin;C:\\Users\\TylerJosephHuffman\\.dotnet\\tools;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "PATH": "C:\\Python311\\Scripts\\;C:\\Python311\\;C:\\Program Files (x86)\\Pololu\\Maestro\\bin;C:\\Program Files\\Eclipse Adoptium\\jre-17.0.10.7-hotspot\\bin;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files\\Eclipse Adoptium\\jre-21.0.1.12-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ncs\\protoc-3.20.1\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\SEGGER\\JLink_V644e;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Subversion\\bin;C:\\Program Files (x86)\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\IVI Foundation\\IVI\\Bin\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WindowsApps;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Pandoc\\;C:\\Program Files (x86)\\Vim\\vim90\\;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Microsoft.NuGet_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Program Files\\Neovim\\bin;C:\\Users\\TylerJosephHuffman\\.dotnet\\tools;C:\\Users\\TylerJosephHuffman\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "C:\\ncs\\v2.1.1\\zephyr"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:/ncs/v2.1.1",
          "toolchain": {
            "path": "c:/ncs/toolchains/v2.1.1"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/src/top/mission_mode",
            "${workspaceFolder}/src/top/production_test",
            "${workspaceFolder}/src/top/hybrid_mode",
            "${workspaceFolder}/src/external/ble_test/bluetooth/direct_test_mode",
            "${workspaceFolder}/src/external/ble_test/pheripheral/radio_test",
            "${workspaceFolder}/src/external/ble_test/dtm_app_core",
            "${workspaceFolder}/src/external/ble_test/radio_test_app_core"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.12.55",
            "path": "c:\\Users\\TylerJosephHuffman\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": null,
          "nordic-semiconductor.nrf-devicetree": null,
          "nordic-semiconductor.nrf-kconfig": null
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.22.11",
          "ms-vscode.js-debug": "1.96.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "ms-vscode-remote.remote-containers": "0.394.0",
          "ms-vscode-remote.remote-wsl": "0.88.5",
          "shd101wyy.markdown-preview-enhanced": "0.8.15",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "vscodevim.vim": "1.29.0"
        }
      }
    }
    
    

    By the way, I discovered that if I use "Manage SDKs -> Manage West Workspace... -> Set West Manifest Repository -> nRF Connect SDK v2.1.1 -> zephyr (c:\ncs\v2.1.1\zephyr\west.yml)", then the Flash action works again. However, my Build action will now fail.

    If I do the above, but replace "zephyr ..." with "nrf (c:\ncs\v2.1.1\nrf\west.yml)", then Build works, but Flash does not, as in the ticket.

    I tried setting ZEPHYR_BASE=C:\ncs\v2.1.1\zephyr in my system environment variables, but that didn't work unfortunately.

Related