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

Parents
  • 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 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

  • Hi Håkon,

    Yes, I tried other cables and ports. This also only happens with the 9160. I can flash my 52840DK and even the 52840 on the 9160DK without Problems

    Greeting,

    Philipp

  • Hi Philipp,

     

    Thank you for testing and confirming.

    Schmid said:
    I can flash my 52840DK and even the 52840 on the 9160DK without Problems

    This is valuable information. I will share this with R&D to see if we can reproduce the issue.

     

    Kind regards,

    Håkon

  • Has anything progressed on resolving this issue?

    I am still seeing this same issue trying to flash nRF9160 platforms on an Apple M2 laptop.

    Apologies for responding to a dormant thread.

  • Hello,

    Did you also try on another computer? What JLink versions do you have on the M2 laptop (and possible other machines that are working)? And are you trying to flash using DKs and the On Board Debugger, or are you using custom HW and a standalone debugger?

    BR,
    Edvin

Reply Children
  • (.venv) yat033@WICHITA-PH workspace % nrfjprog -v
    nrfjprog version: 10.24.0 external
    JLinkARM.dll version: 7.94e

    Custom hardware and a SEGGER j-link Ultra+.
    Flashing the binary (bootloader + application) in seperate parts works fine, combined it consistently fails.
    Doing a full chip erase with `nrfjprog --recover` and then flashing without `--sectorerase` also works fine.
    My suspicion is that with `--sectorerase` and a large binary, the erase component of the job takes too long (12 seconds) and thus the job times out. Is there perhaps a 10 second internal timeout on the erase operation?

Related