problems with openocd 0.4.0 and olimex arm-usb-tiny-h

my systemi is ubuntu 9.10 x86-64, and openocd is configure as follows:

./configure --enable-ft2232_libftdi --enable-jlink

my target is an AT91SAM7X-EK board

openocd is linked against following library:

$ ldd ./src/openocd
        linux-vdso.so.1 =>  (0x00007fff2bbff000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fe62362f000)
        libftdi.so.1 => /usr/lib/libftdi.so.1 (0x00007fe623429000)
        libusb-0.1.so.4 => /lib/libusb-0.1.so.4 (0x00007fe623220000)
        libc.so.6 => /lib/libc.so.6 (0x00007fe622eae000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe623833000)

I try with example scripts:

$ sudo openocd -f ./tcl/interface/olimex-arm-usb-tiny-h.cfg -f
./tcl/target/at91sam7sx.cfg
Open On-Chip Debugger 0.4.0 (2010-02-25-21:53)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Warn : use 'at91sam7s.cpu' as target identifier, not '0'
Info : clock speed 6000 kHz
Error: couldn't read enough bytes from FT2232 device (79 < 81)
Error: couldn't read from FT2232
Error: couldn't read enough bytes from FT2232 device (79 < 81)
Error: couldn't read from FT2232
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.

it seems a problem with ftdi…

maybe I use too old version of libusb (0.1.12) and libftdi (0.13)? Or I use wrong scripts?

Take into account that trying with old olimex ARM-USB-OCD (with its own script) it works well.

thanks

  1. On Linux you should be using libusb-1.0 not, 0.1

  2. You are using to ancient version of libftdi - update to the most recent.

4/3!!

The libftdi site mentions we need to use libusb 0.1.x.

http://www.intra2net.com/en/developer/l … wnload.php

Is this incorrect? Or is it necessary for the libftd2xx library to use libusb1.0.x?

Thnx

Bob