What AM I doing wrong?

Background:

Board has ARM7TDMI.

Board has 20-pin JTAG connector. SRST and TRST are seperate.

TCK needs to run at 2mHz.

I want the board to STOP at reset when starting up.

I Have on OLIMEX USB ARM TINY debugger.

My config file looks like:


#daemon configuration

telnet_port 4444

gdb_port 3333

daemon_startup attach

#interface

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY B”

ft2232_layout olimex-jtag

Set jtag clock to 2mHz

jtag_speed 2

#jtag scan chain

#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

#format for ARM7TDMI

jtag_device 4 0x1 0xf 0xe

#target arm7tdmi

target arm7tdmi little reset_halt 0

run_and_halt_time 0 30

working_area 0 0x44000000 0x2000 nobackup


I start openOCD as follows, and get following result:


C:\GCCFD\openocd\bin>openocd-ftd2xx.exe -d

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

Debug: jtag.c:1210 jtag_init():

Debug: ft2232.c:991 ft2232_init(): ‘ft2232’ interface using FTD2XX with 'olime

x-jtag’ layout

Debug: ft2232.c:1077 ft2232_init(): current latency timer: 2

Debug: ft2232.c:1330 olimex_jtag_init(): 80 08 1b

Debug: ft2232.c:1373 olimex_jtag_init(): 82 09 0f

Debug: ft2232.c:242 ft2232_speed(): 86 02 00

Debug: jtag.c:247 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:247 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1096 jtag_reset_callback():

Error: ft2232.c:225 ft2232_read(): couldn’t read the requested number of bytes

from FT2232 device (0 < 2)

Error: ft2232.c:365 ft2232_send_and_recv(): couldn’t read from FT2232


And then openOCD exits.

Has anyone got any idea what I am doing wrong?

There seems to be a problem with the USB communication. Try a different (shorter) USB cable or a self-powered hub.

Regards,

Dominic