nRF5340 DK: "Failed to erase device" and J-Link DLL Unknown Error (-1/-2) during Programming

Hello,

I am experiencing a critical failure while trying to program my nRF5340 DK using the nRF Connect for Desktop Quick Start app (v1.6.0). The process fails at the "Program" step with the error: "Failed to erase device."

Project Context:

  • Board: nRF5340 DK (PCA10095)

  • SDK Version: v3.1.0

  • Toolchain: nRF Connect SDK Toolchain v3.1.0

trued to erase and recover the board, still no success. i have added the logs and image here

2026-02-16T09:10:08.634Z INFO Initialising the bundled nrfutil device
2026-02-16T09:10:08.645Z DEBUG Started watching devices
2026-02-16T09:10:08.940Z INFO Using the bundled core version for nrfutil device: 8.1.1
2026-02-16T09:10:08.963Z INFO Using nrfutil device version: 2.15.2
2026-02-16T09:10:08.963Z INFO Using nrf-device-lib version: 0.22.0
2026-02-16T09:10:08.963Z INFO Using nrf-probe version: 0.49.0
2026-02-16T09:10:08.963Z INFO Using SEGGER J-Link version: JLink_V8.76
2026-02-16T09:10:11.658Z DEBUG Selected device: nRF5340 DK
2026-02-16T09:10:11.696Z DEBUG Changed step: Info
2026-02-16T09:10:13.572Z DEBUG Changed step: Rename
2026-02-16T09:10:15.319Z DEBUG Changed step: Program
2026-02-16T09:10:20.873Z ERROR {jlink_usb_001050065349} Failed to unpower debug regions: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) msg.target="nrf_probe::probe_state" time_stamp=1771233020873441
2026-02-16T09:10:28.394Z ERROR Failed to read the device information when setting up default external flash configuration. This is not critical, ignoring this error to allow the next operation to run, but we will probably hit it again on the next operation. The full error was: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-2)).

This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled
2026-02-16T09:10:28.603Z ERROR {jlink_usb_001050065349} Failed to unpower debug regions: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) msg.target="nrf_probe::probe_state" time_stamp=1771233028603493
2026-02-16T09:25:00.437Z ERROR {jlink_usb_001050065349} Failed to unpower debug regions: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) msg.target="nrf_probe::probe_state" time_stamp=1771233900426785


Related