iMX51 + openocd 0.5.0 + Olimex ARM USB Tiny

Has anyone successfully halted iMX51 (cortex-A8) using openocd? I’ve used openocd imx51.cfg script,

but I can’t halt the processor… I’ve tried plain old ‘halt’ command…

RCLK - adaptive

100 kHz

trst_only separate trst_push_pull

adapter_nsrst_delay: 200

jtag_ntrst_delay: 200

Warn : imx51.SDMA: nonstandard IR value

RCLK - adaptive

Info : RCLK (adaptive clock speed) not supported - fallback to 100 kHz

Polling target failed, GDB will be halted. Polling again in 100ms

Polling target failed, GDB will be halted. Polling again in 300ms

Info : JTAG tap: imx51.DAP tap/device found: 0x1ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x1)

Info : TAP imx51.SDMA does not have IDCODE

Info : JTAG tap: imx51.SJC tap/device found: 0x1190c01d (mfg: 0x00e, part: 0x190c, ver: 0x1)

Warn : failed to enable tap imx51.DAP

Info : imx51.cpu: hardware has 1 breakpoints, 1 watchpoints

Polling succeeded again

Error: imx51.cpu: how to reset?

in procedure ‘reset’

Error: Timeout waiting for halt

in procedure ‘halt’

Any hint would be very helpful…

I have the same using a TX51 module from Karo Electronics (contains a i.mx515).

Seems that it’s not able to enable the imx51.DAP

Please advise:

See the shell output below ->:

C:\Documents and Settings\hardware\Desktop\openocd-0.5.0\bin>openocd-0.5.0 -f …

\interface\arm-usb-ocd.cfg -f …\target\imx51.cfg

Open On-Chip Debugger 0.5.0 (2011-08-09-23:21)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.berlios.de/doc/doxygen/bugs.html

Info : only one transport option; autoselect ‘jtag’

Warn : imx51.SDMA: nonstandard IR value

RCLK - adaptive

Info : RCLK (adaptive clock speed) not supported - fallback to 1000 kHz

Polling target failed, GDB will be halted. Polling again in 100ms

Polling target failed, GDB will be halted. Polling again in 300ms

Info : JTAG tap: imx51.DAP tap/device found: 0x1ba00477 (mfg: 0x23b, part: 0xba0

0, ver: 0x1)

Info : TAP imx51.SDMA does not have IDCODE

Info : JTAG tap: imx51.SJC tap/device found: 0x1190c01d (mfg: 0x00e, part: 0x190

c, ver: 0x1)

Warn : failed to enable tap imx51.DAP

Info : imx51.cpu: hardware has 1 breakpoints, 1 watchpoints

Polling succeeded again

Is there really nobody with any pointers to open the DAP on a imx51?

Please help

Is there some boot/linux/app code already running on the target? I was told the iMX351, that I am using, can disable the JTAG port if the linux code is running. I would guess that is the same for the family of iMX parts. I have to connect before the linux code starts or the JTAG won’t work.