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
      }
    }

  • What errors are you referring to? `JLINK_HasError()` is just a check that is being called after every operation, and I can't see anything else.

    Hopefully the information I have already provided is enough, as I am finishing up at my current job tomorrow and are therefore not in a position to upload binaries or perform additional checks.

    If I run into the same problem again in the future I will be sure to open another ticket Slight smile

  • Sorry. You are correct. After looking quicky at it, I didn't see it was a function call. Either way, I have forwarded the log information to our nRF Command Line Tools team, and hopefully they can make sense of it.

    Thank you for reporting, and good luck with your future position Slight smile Hopefully, this may help others experiencing the same issue.

    Best regards,

    Edvin

  • After recover its works but its a pain in the ass because it erases my nvs and otp data which I have to flash later

  • Hello,

    Some more details could be helpful. What NCS version are you using? What version of nrfjprog do you have installed? What board target are you trying to flash? nRF7002DK? Or a custom board? If it is a custom board, can you upload your board files?

    Have you tried using the command "west -v flash ..." to see some more log output?

    What if you run "nrfjprog --program /Users/airship/Documents/projects/m-sensor-iot/build/merged.hex --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050749117" directly? Does that work?

    Does this issue occur at all times? Or occasionally?

    Best regards,

    Edvin

Reply Children
No Data
Related