nRF Connect Build Hangup

I have been using the VS Code extensions for setting up and building projects. Sometime yesterday build times went up from < 20 seconds to 10+ minutes. It looks like it's hanging up and waiting for some kind of timeout. I have uninstalled and reinstalled the extensions and also removed the toolchain/sdk and re-downloaded them with no success. I have included a screenshot of where it gets hung and waits.

Thank you!

Daniel

Parents
  • I had a similar experience recently. Mine would hang where you show it for a while and then it would continue to build (slowly). I looked in task manager and there were hundreds of "git for windows" tasks spawned by vscode and manually killing those fixed it for me.

    Might not be the same problem, but worth a shot.

  • Unfortunately it doesn't look like that's the case here... I was hoping it would be that simple!

  • Hi Daniel,

    Did this issue occur after any updates? Could you attach the Support Information from the VSCode extension?

    -Priyanka

  • Hi! I am not aware of any updates that would have happened. Upon a closer look, it looks like it is hanging up any time west attempts to search for the toolchain, device tree, or generate the device tree output

    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Enterprise",
        "osKernel": "10.0.22631",
        "vscode": "1.91.1",
        "electron": "29.4.0",
        "node": "v20.9.0"
      },
      "system": {
        "date": "2024-07-25T12:26:27.663Z",
        "vscodeRoot": "c:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:03:01",
        "osUptime": "72:11:15",
        "cpu": "Intel(R) Core(TM) Ultra 7 165U"
      },
      "workspace": {
        "name": "ULC (Workspace)",
        "workspaceFile": "c:\\Users\\daniel.mccall\\local_documents\\ULC\\ULC.code-workspace",
        "folders": [
          "c:\\Users\\daniel.mccall\\local_documents\\ULC"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.1",
          "path": "c:\\ncs\\v2.6.1"
        }
      ],
      "activeBuild": "c:\\Users\\daniel.mccall\\local_documents\\ULC\\ble_firmware\\build_glock",
      "apps": [
        {
          "workspace": "c:\\Users\\daniel.mccall\\local_documents\\ULC",
          "uri": "c:\\Users\\daniel.mccall\\local_documents\\ULC\\ble_firmware",
          "buildConfigurations": [
            {
              "id": "c:\\Users\\daniel.mccall\\local_documents\\ULC\\ble_firmware\\build_glock",
              "name": "build_glock",
              "boardId": "noke_glock",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "c:\\ncs\\v2.6.1",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        },
        {
          "version": "2.6.1",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-1",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "nrfutil": "Not found",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\cmake.exe": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": null,
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\daniel.mccall",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\daniel.mccall",
          "PATH": "C:\\ncs\\toolchains\\ce3b5ff664;C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-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\\ServiceNow\\agent-client-collector\\bin;C:\\Program Files\\ServiceNow\\agent-client-collector\\embedded\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\daniel.mccall\\AppData\\Local\\JetBrains\\PyCharm Community Edition 2024.1.4\\bin;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.6.1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\daniel.mccall",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\daniel.mccall",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\ServiceNow\\agent-client-collector\\bin;C:\\Program Files\\ServiceNow\\agent-client-collector\\embedded\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\daniel.mccall\\AppData\\Local\\JetBrains\\PyCharm Community Edition 2024.1.4\\bin;",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\ServiceNow\\agent-client-collector\\bin;C:\\Program Files\\ServiceNow\\agent-client-collector\\embedded\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\dotnet\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\daniel.mccall\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\daniel.mccall\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\daniel.mccall\\AppData\\Local\\JetBrains\\PyCharm Community Edition 2024.1.4\\bin;"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\ce3b5ff664",
        "toolchainBinPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.7.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}\\ble_firmware"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {
              "${workspaceFolder}/0.0.1/build_glock": "Launch build_glock",
              "${workspaceFolder}/ble_firmware/build_glock": "Launch build_glock"
            },
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": true,
            "recover": false
          },
          "enableTelemetry": true,
          "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": true,
          "dbgServerLogfile": null
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.7.13",
            "path": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.6.20",
            "path": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.6.20",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.6.20",
            "path": "c:\\Users\\daniel.mccall\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.6.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.12.1",
          "ms-vscode.cpptools": "1.21.3",
          "ms-vscode.js-debug": "1.91.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.9",
          "bbenoist.Doxygen": "1.0.0",
          "bierner.markdown-mermaid": "1.23.1",
          "cschlosser.doxdocgen": "1.4.0",
          "dan-c-underwood.arm": "1.7.4",
          "GitHub.copilot": "1.216.0",
          "GitHub.copilot-chat": "0.17.1",
          "GitHub.vscode-pull-request-github": "0.92.0",
          "hkmshb.rst-viewr": "0.0.5",
          "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",
          "ms-azuretools.vscode-docker": "1.29.1",
          "ms-python.debugpy": "2024.8.0",
          "ms-python.python": "2024.10.0",
          "ms-python.vscode-pylance": "2024.7.1",
          "ms-vscode-remote.remote-wsl": "0.88.2",
          "ms-vscode.cmake-tools": "1.18.43",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.10.0",
          "ms-vscode.makefile-tools": "0.9.10",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "waderyan.gitblame": "11.0.1",
          "ZixuanWang.linkerscript": "1.0.4"
        }
      }
    }
    
    [08:30:49] Success.

  • Thank you Daniel. I will discuss this internally ad get back to you.

    -Priyanka

Reply Children
No Data
Related