Hello Nordic Support Team,
I'm encountering a persistent issue when I try to flash an nRF52832 board using an nRF52840DK (PCA10056, nRF52840_xxAA_REV3) with nRF Programmer v4.5.0. The setup was working previously using the VS Code extension (as described in Case ID: 339001), now I am back to step 1. I am unable to flash or reset the external IC even with the nRF Programmer GUI tool. The error logs show the following message:
01:12:09.721 Error: Failed with exit code 1. Failed to device info one or more devices: * 1050264751: [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Operation device-info failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1). 01:12:10.433 Reading readback protection status for Application core 01:12:10.433 Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1) 01:12:10.650 Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).
In a normal case where I disconnect the DK from the external board, I would get a log as below, where the programmer can read the file memory01:10:39.579 Selecting device with the serial number 001050264751 01:10:40.662 Selected device with the serial number 001050264751 01:10:40.663 Using nrfutil device to communicate with target via JLink 01:10:40.663 JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Feb 11 2025 17:15:35 01:10:40.663 Device family NRF52_FAMILY 01:10:40.663 Device version NRF52840_xxAA_REV3 01:10:40.663 Board version PCA10056 01:10:41.423 Reading readback protection status for Application core 01:10:41.424 Reading readback protection status for Application core 0% 01:10:41.430 Reading readback protection status for Application core 100% 01:10:41.430 Application core protection status 'NRFDL_PROTECTION_STATUS_NONE' 01:10:41.430 Reading readback protection status for Application core completed 01:10:42.504 Loading core information for Application core 01:10:42.504 Loading core information for Application core 0% 01:10:42.543 Loading core information for Application core 100% 01:10:42.543 Loading core information for Application core completed 01:10:42.543 Reading memory for Application core 01:10:42.543 Reading memory for Application core 0% 01:10:49.647 Reading memory for Application core 100% 01:10:49.886 Reading memory for Application core completed 01:10:49.887 Parse memory regions for Application core 01:10:50.789 Reading readback protection status for Application core 01:10:50.789 Reading readback protection status for Application core 0% 01:10:50.796 Reading readback protection status for Application core 100% 01:10:50.796 Application core protection status 'NRFDL_PROTECTION_STATUS_NONE' 01:10:50.796 Reading readback protection status for Application core completed 01:10:51.083 Device is loaded and ready for further operationuestions
I have tried the following:
-
Checked Readback Protection:
Log showsNRFDL_PROTECTION_STATUS_NONE
, so the device is not protected. -
Power Cycle:
Tried power-cycling the device and reconnecting multiple times. -
nrfjprog Commands:
nrfjprog --recover -f NRF52 --snr 1050264751
resulted in error-21
.nrfjprog --eraseall
also failed with a similar error.
My Questions are:
- Could this be a hardware issue? for example, the swd cable is not securely connected?
- Any recommended steps to resolve the DebugPort register error?
Thank you in advance for your support!