Hi,
I want to use a Segger J-Link Pro JTAG debugger to help me debug one PCIe problem that makes the kernel crash when two PCIe devices are present (e.g the onboard Realtek 6818 Ethernet and a mini-PCIe 802.11ac radio module).
My J-Link is connected via a ARM-JTAG-20-10 from Olimax to the female JTAG header on the Hikey970 (using an additional male-male 10 pin header).
When attempting to connect using the JLinkExe, the target voltage is correctly detected as 1.8V but I can’t connect/attach to the CPU.
C:\Program files (x86)\SEGGER\JLink_V640>JLink.exe -device Cortex-A53
SEGGER J-Link Commander V6.40 (Compiled Oct 26 2018 15:06:29)
DLL version V6.40, compiled Oct 26 2018 15:06:02
Connecting to J-Link via USB...O.K.
firmware: J-Link Pro V4 compiled Oct 26 2018 12:05:09
Hardware version: V4.00
S/N: xxxxxxxxx
License(s): RDI, flashBP, flashDL, Jflash, GDB
IP-Addr: 192.168.100.2
VTref=1.833V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIf>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>auto
Device "CORTEX-A53" selected.
Connecting to target via SWD
found SW-DP with ID 0x5BA02477
failed to power up DAP
found SW-DP with ID 0x5BA02477
failed to power up DAP
found SW-DP with ID 0x5BA02477
failed to power up DAP
found SW-DP with ID 0x5BA02477
failed to power up DAP
Cannot connect to target.
J-Link>
The J-link input led (arrow from target to pc) is Orange constant, which according to the J-Link doc, seems to indicate that the target is in reset state…but this is not true because board has booted and is running linux. The J-Link output led is off.
The Hikey970 schematics doc refers two JTAG_SEL pins but the remaining documentation does not say how to set these pins or how to use the JTAG. This Hikey960 post seems to refer some steps how to enable the JTAG but I am not sure if they apply to the Hikey970…and they were not completely clear to me.
I’ve also tried to follow the OpenOCD JTAG and Hikey steps without success.
Has anyone tried to use the JTAG on the Hikey970?
Do I need to run some special J-Link script to enable the Hi3670 JTAG debug (based on Cortex A53/A73)?
Any suggestions/guidance would be very much appreciated.
Thanks.