nRF52840/nRF5340 Development Boards Cannot Flash Programs After Using DEBUG Function

Error Report:

When flashing, I get this error:

Error:
One or more batch tasks failed: * 1050058878: Timed out waiting for response from worker. (Generic) FATAL ERROR: command exited with status 1: nrfutil --json device --x-ext-mem-config-file C:/ncs/v3.0.2/zephyr/boards/nordic/nrf5340dk/support/nrf5340dk_qspi_nrfutil_config.json x-execute-batch --batch-path 'D:\pj-ncs\hello_world\build\generated_nrfutil_batch.json' --serial-number 1050058878

This occurred while working on Exercise 1 of Lesson 2 (Debugging and troubleshooting) in the nRF Connect SDK Intermediate course. After following the instructions and clicking DEBUG:

  1. An error dialog appeared
  2. My board can no longer be flashed (even previously working programs fail)
  3. The J-LINK folder no longer appears when connecting the board to the computer
  4. Both erase and recover operations in VS Code failed (see attached logs)
  5. The same issue occurs with both nRF52840 and nRF5340 boards

Key points:

  • Problem started after debug attempt
  • Affects multiple boards
  • Basic recovery methods failed
  • J-Link communication appears broken
  • Hello, 

    There could be a few reasons for this happening, with different fixes. Here are some few steps you can try out (in no particular order): 

    • Verify that your J-Link version is compatible with the your SDK and nrfutil versions. If you have newer version than the tested version it may work, but we have no guarantee. If you have an older version, please upgrade. For the newest nrfutil version v8.66 is tested. 
    • Restarting VS Code and plugging in the DKs again sometimes fixes these kinds of errors.
    • Rebooting the computer sometimes fixes these kinds of errors.

    Best regards,

    Maria

Related