8devices: Lima Boards - Failed to enter debug mode

Open source ARM Debugger

Moderator: phalanx

Post Reply
sivakumar
Posts: 1
Joined: Sun Sep 23, 2018 7:03 pm

8devices: Lima Boards - Failed to enter debug mode

Post by sivakumar » Sun Sep 23, 2018 7:32 pm

Hi All,

We have got a product which is based on the 8devices Lima boards with some customization's. In the process of updating the U-boot with some custom changes we ended up bricking few boards. Based on the information's from the internet we decided to use openOCD with the FTDI interface to revive these boards. The version of FTDI cable that we have got is C232HM-DDHSL-0.

So far we haven't had any luck in communicating the device using openOCD over EJTAG. From the logs it seems that the openOCD is not being able to put the device into the debug mode.

There are no TRST and SRST pins connected to the FTDI cable and the openOCD configuration file for these board seems to handle that. Now we have ran out of ideas to figure out what the problem is. I have added the excerpts from the logs below and the commands used.

I would really appreciate if someone could help us figure out what the problem is.

Server Side
============
Debug: 381 13139 mips_m4k.c:316 mips_m4k_assert_reset(): target->state: running
Debug: 382 13140 core.c:725 jtag_add_reset(): SRST line asserted
Debug: 383 13140 core.c:742 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 384 13141 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 410 13339 mips_ejtag.c:226 mips_ejtag_enter_debug(): ejtag_ctrl: 0x000dc000
Error: 411 13339 mips_ejtag.c:232 mips_ejtag_enter_debug(): Failed to enter Debug Mode!
Debug: 381 13139 mips_m4k.c:316 mips_m4k_assert_reset(): target->state: running
Debug: 382 13140 core.c:725 jtag_add_reset(): SRST line asserted
Debug: 383 13140 core.c:742 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 384 13141 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset

Client Side
=============
> reset halt /reset init /full_reset (All of these commands are showing the exact same behavior)
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst
JTAG tap: qca4531.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Failed to enter Debug Mode!
Halt timed out, wake up GDB.
timed out while waiting for target halted

Command Used:
============
openocd -f interface/ftdi/um232h.cfg -f board/8devices-lima.cfg -c "adapter_khz 6000" -d3

Thanks in advance.
-Siva

Post Reply