Did Worker Process die? on Flash

Hi, while working with the nRF9160DK i get this Error a lot of times, I can't say "Yes" or something else and have to wait until the progress bar fills completely. Even if I disconnect the DK.

It really takes some time on a workday because this happens a lot. I hope there is a fix,

Greetings,
Philipp

  • Hi,

     

    Do you have a more detailed log output from vscode?

    Could you share the output from CTRL-SHIFT+P, "nRF connect: Generate support information" in Vscode?

     

    Kind regards,

    Håkon

  • Hi, sure:

    Flashing build to 9160 Kit2
    /bin/sh -c west flash -d /Users/pschmid/Projects/bridgenordic/build --skip-rebuild --dev-id 960095624
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: Flashing file: /Users/pschmid/Projects/bridgenordic/build/zephyr/merged.hex
    Timed out waiting for progress updates.sing non-volatile memory - block 7 of 7                                         
    Did worker process die?
    [ #################### ]  12.146s | Erase file - Done erasing                                                          
    ERROR: An internal error has occurred, please try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    FATAL ERROR: command exited with status 63: nrfjprog --program /Users/pschmid/Projects/bridgenordic/build/zephyr/merged.hex --sectorerase --verify -f NRF91 --snr 960095624

    {
      "platform": {
        "os": "darwin",
        "osVersion": "Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020",
        "osKernel": "22.6.0",
        "vscode": "1.81.0",
        "electron": "22.3.18",
        "node": "v16.17.1"
      },
      "system": {
        "date": "2023-08-09T07:18:11.928Z",
        "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "22:40:37",
        "osUptime": "139:25:20",
        "cpu": {
          "model": "Apple M2 Pro",
          "speed": "24 MHz",
          "count": 6
        },
        "memory": {
          "total": "16.00 GB",
          "free": "0.18 GB"
        }
      },
      "workspace": {
        "name": "bridgenordic",
        "workspaceFile": null,
        "folders": [
          "/Users/pschmid/Projects/bridgenordic"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.7.129",
            "path": "/Users/pschmid/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.7.129-darwin-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.7.47",
            "path": "/Users/pschmid/.vscode/extensions/nordic-semiconductor.nrf-terminal-2023.7.47",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.7.56",
            "path": "/Users/pschmid/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2023.7.56",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.6.51",
            "path": "/Users/pschmid/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2023.6.51",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.4.4",
          "ms-vscode.cpptools": "1.16.3",
          "ms-vscode.js-debug": "1.81.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "EditorConfig.EditorConfig": "0.16.4",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.23",
          "mcu-debug.peripheral-viewer": "1.4.6",
          "mcu-debug.rtos-views": "0.0.7",
          "ms-vscode.hexeditor": "1.9.12",
          "PKief.material-icon-theme": "4.29.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "yzhang.markdown-all-in-one": "3.5.1"
        }
      },
      "tools": {
        "/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.0",
        "/Applications/SEGGER/JLink/JLinkExe": "7.88j",
        "/usr/local/bin/nrfjprog": "10.23.0",
        "nrfutil": "Not found",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/cmake": "3.20.5",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/west": "1.0.0",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/python3": "3.9.6",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/ninja": "1.10.2",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/gperf": "3.1",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/dtc": "1.6.1",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/gn": "2106",
        "/opt/nordic/ncs/toolchains/4ef6631da0/bin/git": "2.37.3",
        "gdbPath": "/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "sdks": [
        {
          "version": "2.4.0",
          "path": "/opt/nordic/ncs/v2.4.0"
        }
      ],
      "toolchains": [
        {
          "version": "2.4.0",
          "path": "/opt/nordic/ncs/toolchains/4ef6631da0"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "960095624"
        }
      ],
      "deviceProvider": "nrfjprog",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.4.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.4.0}"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": false
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "debugging": {
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfjprog"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "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,
          "flattenAnonymous": false,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/4ef6631da0/Cellar/git/2.37.3/libexec/git-core",
          "HOME": "/Users/pschmid",
          "PATH": "/opt/nordic/ncs/toolchains/4ef6631da0/bin:/opt/nordic/ncs/toolchains/4ef6631da0/usr/bin:/opt/nordic/ncs/toolchains/4ef6631da0/usr/local/bin:/opt/nordic/ncs/toolchains/4ef6631da0/opt/bin:/opt/nordic/ncs/toolchains/4ef6631da0/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
          "ZEPHYR_BASE": "/opt/nordic/ncs/v2.4.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk",
          "USER": "pschmid"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/Users/pschmid",
          "PATH": "/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
          "USER": "pschmid"
        },
        "toolchainPath": "/opt/nordic/ncs/toolchains/4ef6631da0",
        "toolchainBinPath": "/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.4.0"
      },
      "terminal": {
        "defaultProfile": null
      }
    }

  • Hi,

     

    Thank you for the detailed information.

    I have been discussing this issue with both the vscode and the nrf connect for desktop team, and we are able to reproduce this on a macbook air m2, with external USB hub. Are you by any chance using a external USB hub?

    What we have noticed with some USB hubs (or docking stations) is that a reboot of the system is required for certain functionality to function properly again, and once booted up; power cycle the nRF9160-DK.

     

    Kind regards,

    Håkon

  • Hello,

    Thank you for your Investigation. No im not using a Hub. Yes it works after I disconnect and reconnect the cable. This precess adds some Time because you also have to eject the device on Mac.. so i hoped there is some better Way to optimise my workflow.

    Greetings,

    Philipp

  • Hi Philipp,

     

    You might have already tried this, but I'll mention it anyway.

    Have you tried using a different USB cable, and/or possibly a different USB port?

     

    I know this is likely not the root cause, but it would be good to rule out a possibly bad usb cable.

     

    Kind regards,

    Håkon

Related