This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[NRF52832] J-Link Error: cannot connect or do any other operation :(

Hi all, today I was working properly and, in a second my nRF52382 (I use SD s132 V3.0 without bootloader, and SDK 12.2) is "disappeared". I googled and I've found some cases like the mine, I tried to recovery the chip using multiples ways (nrfjprog, nRF-Go Studio, J-Flash...), but, although I tried and re-tried, my nRF52382 is always "absent"...can anyone help me, please?

This is the log of nrfjprog -f NRF52 --recover:

nrfjprog -f nrf52 --recover --log
nrfjprog verion 9.6.0
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: recover.
FUNCTION: recover.
JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
FUNCTION: close_dll.
FUNCTION: close_dll.

My code uses P0.21 as GPIO, so I tried to recovery the Reset functionality:

 nrfjprog --pinresetenable --log

but never and never...

--------------------------------------------------------------------------------
nrfjprog --pinresetenable --log
nrfjprog verion 9.6.0
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: read_connected_emu_snr.
FUNCTION: read_connected_emu_snr.
FUNCTION: read_device_family.
FUNCTION: read_device_family.
JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
FUNCTION: close_dll.
FUNCTION: close_dll.

Trying again (nrfjprog -f NRF52 --recover) I got this:

--------------------------------------------------------------------------------
nrfjprog -f NRF52 --recover --log
nrfjprog verion 9.6.0
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device "NRF52832_XXAA" selected.
FUNCTION: recover.
FUNCTION: recover.
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning APs, stopping at first AHB-AP found.
AP[0] IDR: 0x24770011 (AHB-AP)
AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
CPUID reg: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
FUNCTION: close_dll.
FUNCTION: close_dll.

...but the nRF52 is still, again, always absent...please, help me, I'm going crazy!

Thank you!

Parents
  • The voltage levels are ok (as I said, the circuit works fine, just I cannot "see" the nRF52, nor reprogram & debug him ...). Yes, I tried J-Link Commander, but not the suggested sequence. This morning we've change the nRF52, but we have also another board with the same problems: I'll try with this board the j-Link Commander sequence. I let you know soon. For now, many thanks Petter, have a good day!

Reply
  • The voltage levels are ok (as I said, the circuit works fine, just I cannot "see" the nRF52, nor reprogram & debug him ...). Yes, I tried J-Link Commander, but not the suggested sequence. This morning we've change the nRF52, but we have also another board with the same problems: I'll try with this board the j-Link Commander sequence. I let you know soon. For now, many thanks Petter, have a good day!

Children
No Data
Related