Timeouts with openocd and ftdi2232

Hi

I’m using openocd (cvs from 30.12.07) with eclipse.

I use an jtagkey tiny. OS is OS X (10.5.2).

Target uC is a ADUC7026

The setup itself is working. Unfortunatly bigger transfers cause

data abort. Download smaller files to flash works.

When I try to download bigger code arround 30kb I get this

error:

source .gdbinit

target remote localhost:3333

0x00000340 in StrToInt ()

monitor wait_halt

waiting for target halted…

target halted

monitor armv4_5 core_state arm

core state: ARM

monitor mwh 0xFFFFF804 0x08

monitor mwb 0xFFFFF808 0x09

monitor load_binary Pulsdetektor_mmc/main.bin 0x0

Ignoring packet error, continuing…

Reply contains invalid hex digit 116

Ignoring packet error, continuing…

Reply contains invalid hex digit 116

target remote localhost:3333

warning: Invalid remote reply:

0x00000340 in StrToInt ()

monitor reg pc 0x0000003C

pc (/32): 0x0000003c

[…]

I also get this errors during debugging, e.g. take a look at the variables

in eclipse with a big array. I think this is a general problem when bigger

ammount of data is transfered.

Fast stepping can also cause data abort.

I tried to change jtag_speed in configuration but this variable doesn’t affect

the data aborts. I tried libftdi and ftd2xx drivers and the have the same

behavior.

How can I fix this issue? Is this problem more related to gb, openocd or

the ftdi2232 device?

Cheers, Tilo

monitor load_binary Pulsdetektor_mmc/main.bin 0x0

Sending packet: $qRcmd,6c6f61645f62696e6172792050756c73646574656b746f725f6d6d632f6d61696e2e62696e20307830#da…Ack

Timed out.

Timed out.

Timed out.

Ignoring packet error, continuing…

Reply contains invalid hex digit 116

target remote localhost:3333

Sending packet: $k#6b…Sending packet: $k#6b…Sending packet: $k#6b…Sending packet: $k#6b…Sending packet: $qSupported#37…Sending packet: $qSupported#37…Sending packet: $qSupported#37…Sending packet: $qSupported#37…Timed out.

Timed out.

Timed out.

Ignoring packet error, continuing…

Packet qSupported (supported-packets) is supported

warning: unrecognized item “timeout” in “qSupported” response

Sending packet: $Hc-1#09…Sending packet: $Hc-1#09…Sending packet: $Hc-1#09…Sending packet: $Hc-1#09…Timed out.

Timed out.

Timed out.

Ignoring packet error, continuing…

Sending packet: $qC#b4…Sending packet: $qC#b4…Sending packet: $qC#b4…Sending packet: $qC#b4…Timed out.

Timed out.

Timed out.

Ignoring packet error, continuing…

Sending packet: $qOffsets#4b…Sending packet: $qOffsets#4b…Sending packet: $qOffsets#4b…Sending packet: $qOffsets#4b…Timed out.

Packet received: PacketSize=7ff;qXfer:memory-map:read-;qXfer:features:read-

Malformed response to offset query, PacketSize=7ff;qXfer:memory-map:read-;qXfer:features:read-

monitor reg pc 0x0000003C

“monitor” command not supported by this target.

monitor arm7_9 force_hw_bkpts enable

“monitor” command not supported by this target.

symbol-file main.out

No registers.

thbreak main

No hardware breakpoint support in the target.

continue

The program is not being run.

Hello Katagia,

do you use the original FTDI driver or the libusb/libftdi one?

First I used the original FTDI with 10.5.1 and had problems,

with the libusb/libftdi it was working.

Regards,

mifi

Hi

I compiled to svn version from today, set a longer timeout and

use the libftdi driver. At the moment it seems to work.

Thank you for your support.