Custom board is not getting detected when I am trying to Program it through nRF52DK, showing [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 170 milliseconds with result -102 ERROR: Unable to connect to a debugger.

>nrfjprog --recover --log
[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 170 milliseconds with result -102
ERROR: Unable to connect to a debugger.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.


I am trying to flash an ADC+BLE code to my custom nrf board having nRF52840 chip on it.


I connected it through nRF52DK to flash a code, but when I am running nrfjprog --recover in command prompt it shows the above error.

Also if I try to open it with nRF Programmer it shows the below screen.

17:34:10.276
Selecting device with the serial number 000682572528
17:34:11.076
Error: Failed with exit code 1. One or more device info tasks failed: * 682572528: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic) Message: Operation device-info failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled.
17:34:11.077
Selected device with the serial number 000682572528
17:34:11.077
Using nrfutil device to communicate with target via JLink
17:34:11.483
Reading readback protection status for Application core
17:34:11.485
Reading readback protection status for Application core 0%
17:34:11.612
Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled
17:34:11.632
Error: Failed with exit code 1. One or more batch tasks failed: * 682572528: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic) Message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled.
17:34:11.632
Error: Failed with exit code 1. One or more batch tasks failed: * 682572528: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic) Message: Batch task protection-get failed, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)). This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled.



Pin Connections:

Sl no. nRF52DK Pins Custom board Pins
1 Gnd GND
2 VTG (Sorted to VDD) Vcc
3 SWDIO SWDIO
4 SWDCLK SWDCLK
Parents Reply Children
Related