str912 / olimex usb tiny

I’m having trouble connecting over an olimexy jtag tiny device, when I run openocd I get the following:

$ openocd -f jtag.conf

Open On-Chip Debugger 1.0 (2008-08-11-18:36) svn:unknown

$URL: http://svn.berlios.de/svnroot/repos/ope … /openocd.c $

Info: options.c:50 configuration_output_handler(): jtag_speed: 20, 20

Info: options.c:50 configuration_output_handler(): jtag_khz: 16, 2000

Error: ft2232.c:1516 ft2232_init_libftdi(): unable to open ftdi device: device not found

Here is my config file, which is basically just the str912 config and the olimex config file put together:

telnet_port 4444
gdb_port 3333

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x0003

jtag_speed 20

jtag_nsrst_delay 100
jtag_ntrst_delay 100

jtag_khz 16 2000

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst

#jtag scan chain
#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 <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm966e little reset_halt 1 arm966e
run_and_halt_time 0 30

target_script 0 reset event/str912_reset.script

working_area 0 0x50000000 16384 nobackup

#flash bank str9x <base> <size> 0 0 <target#> <variant>
flash bank str9x 0x00000000 0x00080000 0 0 0
flash bank str9x 0x00080000 0x00008000 0 0 0

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

Also here the lsusb output:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 007: ID 1784:0008 TopSeed Technology Corp.

Bus 004 Device 006: ID 046d:c525 Logitech, Inc.

Bus 004 Device 005: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser

Bus 004 Device 002: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub

Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 002: ID 15ba:0004 Olimex Ltd. OpenOCD JTAG TINY

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 007: ID 046d:c51a Logitech, Inc. MX Revolution/G7 Cordless Mouse

Bus 002 Device 004: ID 05af:0802 Jing-Mold Enterprise Co., Ltd

Bus 002 Device 003: ID 0557:7000 ATEN International Co., Ltd Hub

Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Does anyone know why it can’t seem to find the device? I’m not sure I understand where the device_desc should come from.

It’s all in the message:

change the following lines in your config, note the change from PID 3 to 4 the match your lsusb output.

ft2232_device_desc “Olimex OpenOCD JTAG TINY”

ft2232_vid_pid 0x15ba 0x0004

Cheers

Spen