Starting OCD layout error

Hi,

I am really new to this type of work. After looking round the web and finding a config file I think I have set up Open OCD ok, I am using a STR9 Com-stick which has a Arm9. I have a config file that I point to when starting but I recieve the errors below, I guess the config file is wrong:

Can anybody suggest what could be causing the errors and any possible solutions?

Thanks,

Tom

C:\openocd_src\src>openocd.exe -f comstick.cfg -d

Info: openocd.c:86 main(): Open On-Chip Debugger (2007-04-11 16:20 CEST)

Debug: jtag.c:1412 handle_interface_command(): ‘interface’ command didn’t spec

ify a valid interface

Info: configuration.c:50 configuration_output_handler(): Command ft2232_devic

e_desc not found

Info: configuration.c:50 configuration_output_handler(): Command ft2232_layou

t not found

Debug: arm966e.c:200 arm966e_target_command(): chain_pos: 1, variant: arm966e

Debug: jtag.c:1335 jtag_init(): -

Error: jtag.c:1376 jtag_init(): No valid jtag interface found (ft2232)

Error: jtag.c:1377 jtag_init(): compiled-in jtag interfaces:

The setup for the comstick will be something like

daemon configuration

telnet_port 4444

gdb_port 3333

comstick ftdi device

interface ft2232

ft2232_device_desc “STR9-comStick A”

ft2232_layout comstick

jtag_speed 1

jtag_nsrst_delay 100

jtag_ntrst_delay 100

use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst

jtag scan chain (first device being the one closest to TDO)

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

jtag_device 8 0x1 0x1 0xfe

jtag_device 4 0x1 0xf 0xe

jtag_device 5 0x1 0x1 0x1e

target configuration

target arm966e little run_and_halt 1 arm966e

reset or attach

daemon_startup reset

run_and_halt_time 0 30

working_area <target#> <‘backup’|‘nobackup’>

working_area 0 0x40000000 16384 nobackup

#flash bank <chip_width> <bus_width>

flash bank str9xpec 0x00000000 0x00080000 0 0 0

Cheers

Spen

Thanks Spen,

I used your config, I had to change comstick in the layout to usbjtag, but it worked. I now have telnet access to my device!

Cheers,

Tom

Very strange, all ftdi based devices use the same jtag pins (TDI,TDO etc) but the SRST/TRST pins are different.

If you are using the comstick then you should be using the comstick layout otherwise the reset handling will be incorrect.

Cheers

Spen