Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: amb_kosh on January 27, 2015, 01:38:06 PM

Title: openOCD for TE0701+TE0720
Post by: amb_kosh on January 27, 2015, 01:38:06 PM
Hi,

I would like to debug my application using USB/JTAG under linux (host and target). I've compiled openOCD following as close as possible the instruction on https://wiki.trenz-electronic.de/display/TE0720/OpenOCD (https://wiki.trenz-electronic.de/display/TE0720/OpenOCD). All is fine until I try to connect gdb to openOCD - the log is attached to this posting. Also attached is the openOCD config file. I'm using eclipse + GDB hardware Debugger plugin as the gdb frontend.
I've tried several ways of compiling openOCD (0.7/0.8, libftd2xx/libftdi) but all look more or less the same. The root cause for the failure seems to be:
QuoteError: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x2800062, MEM_AP_TAR 0x1e348
Error: Failed to read memory at 0x0001e348

Any ideas welcome

thank you
Jörg
Title: Re: openOCD for TE0701+TE0720
Post by: Antti Lukats on January 29, 2015, 03:55:25 PM
similar problems happen with Xilinx debugger tools also :(

There are specific delays and order of commands that may cause the ARM DAP to behave badly, I have had similar issues this also many many times.

When I did the openOCD testing, then it worked, but it was done on windows host. After that work we have not tried with openOCD any more.

Try to let the zynq to boot from some empty dummy FSBL, that may solve the issue