Linux + libftd2xx + openocd-0.4.0-rc1 problem

(New to this forum, but I don’t see my problem already addressed)

I’m trying to use OpenOCD on Ubuntu (XubuTOS 2, actually) with the Olimex ARM-USB-TINY, to program an Imote2 (Crossbow). I understand that the ARM-USB-TINY device works only with the ftd2xx, not ftdi, driver.

So, I’ve installed libftd2xx-0.4.16 and built openocd with --enable-ft2232_ftd2xx. Openocd configures, makes, and installs without error.

But when I launch openocd (using ‘arm-usb-tiny.cfg’) it responds…

Error: The specified JTAG interface was not found (ft2232)

The following JTAG interfaces are available:

Command handler execution failed

I suspect that the ftd2xx driver isn’t working, but don’t know how to debug it.

Suggestions on what to try - or, alternatively, where I should be looking for help?

Thanks!

I’ve got exactly the same problem. I also tried installing the OpenOCD 0.3.1 binary from the Ubuntu 10.4 repository, but got the same results with that.

From my dmesg, it looks as though the ftdi driver isn’t picking up the ARM-USB-TINY when it’s plugged in? I don’t know where to start with fixing that, though. Help?

dmesg:

...
[ 4804.092089] usb 3-1: new full speed USB device using uhci_hcd and address 13
[ 4804.287697] usb 3-1: configuration #1 chosen from 1 choice

openocd.cfg:

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x0004

lsusb:

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

It was an openocd.cfg issue, that dmesg output was normal. I had the “ft2232_device_desc” line wrong.