Hello,
Im trying to debug a custom pcb with an nrf51822 SoC, however i can't seem to connect it.
Im using a genuine jlink Plus debugger and tag-connect 6 pin adapter to the pcb board.
When I run Jlink commander, it reads the VTref = 2.996V. For options i pick the right device, SWD as target interface,
the speed at 1000 kHz (i've tried many different settings, doesnt seem to be the problem).
I also tried power cycling the device, and resetting it, and every combination of settings and power states,
but i always get "Cannot connect to device" after about half a second delay.
The output of the jlink log file:
T26B0 000:000 SEGGER J-Link V6.10i Log File (0000ms, 0000ms total)
T26B0 000:000 DLL Compiled: Oct 25 2016 19:31:51 (0000ms, 0000ms total)
T26B0 000:000 Logging started @ 2020-07-21 12:55 (0000ms, 0000ms total)
T26B0 000:000 JLINK_SetWarnOutHandler(...) (0000ms, 0000ms total)
T26B0 000:000 JLINK_OpenEx(...)
Firmware: J-Link V10 compiled Jun 9 2020 13:38:07
Hardware: V10.10
S/N: 600101874
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDBWEBSRV Webserver running on local port 19080 (0007ms, 0007ms total)
T26B0 000:000 returns O.K. (0007ms, 0007ms total)
T26B0 000:007 JLINK_GetEmuCaps() returns 0xB9FF7BBF (0000ms, 0007ms total)
T26B0 000:007 JLINK_TIF_GetAvailable(...) (0000ms, 0007ms total)
T26B0 000:007 JLINK_SetErrorOutHandler(...) (0000ms, 0007ms total)
T26B0 000:007 JLINK_ExecCommand("ProjectFile = "C:\Users\Muamer\Desktop\Pixel\alabama-pixel_2018-b3f489ef9534\pca10028\arm5\JLinkSettings.ini"", ...). C:\Program Files (x86)\SEGGER\JLink_V610i\JLinkDevices.xml evaluated successfully. returns 0x00 (0082ms, 0089ms total)
T26B0 000:090 JLINK_ExecCommand("Device = nRF51822_xxAC", ...). Device "NRF51822_XXAC" selected. returns 0x00 (0003ms, 0092ms total)
T26B0 000:093 JLINK_ExecCommand("DisableConnectionTimeout", ...). returns 0x01 (0000ms, 0092ms total)
T26B0 000:093 JLINK_GetHardwareVersion() returns 0x18A88 (0000ms, 0092ms total)
T26B0 000:093 JLINK_GetDLLVersion() returns 61009 (0000ms, 0092ms total)
T26B0 000:093 JLINK_GetFirmwareString(...) (0000ms, 0092ms total)
T26B0 000:097 JLINK_GetDLLVersion() returns 61009 (0000ms, 0092ms total)
T26B0 000:097 JLINK_GetCompileDateTime() (0000ms, 0092ms total)
T26B0 000:098 JLINK_GetFirmwareString(...) (0000ms, 0092ms total)
T26B0 000:099 JLINK_GetHardwareVersion() returns 0x18A88 (0000ms, 0092ms total)
T26B0 000:103 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0001ms, 0093ms total)
T26B0 000:104 JLINK_SetSpeed(5000) (0000ms, 0093ms total)
T26B0 000:104 JLINK_GetId() >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> >0x108 TIF> returns 0x00000000 (0897ms, 0990ms total)
T26B0 002:803 JLINK_Close() (0011ms, 1001ms total)
T26B0 002:803 (0011ms, 1001ms total)
T26B0 002:803 Closed (0011ms, 1001ms total)