jtagkey Error: No valid jtag interface found (ft2232)

I thought I had OpenOCD installed right but when I tried to use it for the first time with my new development board (and new Amontec JTAGkey) I keep getting:

Error: No valid jtag interface found (ft2232)

I installed (a svn head (1411) & release 0.1.0.tgz which both do the same thing) and built openocd with:

./configure --enable-ft223_ftd2xx

make

make install

The autoconf put up a message saying that libftd2xx is assumed to be in the right place. It is … I downloaded the shared lib from Amontec and followed their instructions and put the lib in the right places and made sym links to the various names.

usbview shows the Amontec JTAGkey with the right 0x0403 and 0xcff8 id’s that match the .cfg I’m using.

For now (mainly because I don’t quite know what I’m doing), I was just trying to start openocd this way:

openocd -f interface/jtagkey.cfg target/at91sam9260.cfg -c “init” -c “reset”

Error: No valid jtag interface found (ft2232)

Error: compiled-in jtag interfaces:

Runtime error, file “/usr/local/lib/openocd/interface/jtagkey.cfg”, line 2:

jtagkey.cfg is:

#interface

interface ft2232

ft2232_device_desc “Amontec JTAGkey A”

ft2232_layout jtagkey

ft2232_vid_pid 0x0403 0xcff8

… and I tried it without the “A” after JTAGkey (as it does not show up that way in usbview)

Tried it as root and normal user.

Board is a Embest SAM9260V1 based on Atmel at91sam9260ek

Not quite sure what I’m doing wrong. I’m using a Ubuntu box which looks like it has libftdi0 already installed so I don’t know if that matters.

My /etc/fstab has this line added following the Amontec instructions:none /proc/bus/usb usbfs auto,users,devmode=0666 0 0

dmesg | tail reports the following when I plug in the JTAGkey:

[13676.002783] usb 4-2: new full speed USB device using uhci_hcd and address 10

[13676.203807] usb 4-2: configuration #1 chosen from 1 choice

Please let me know if I need to provide more info.

Hopefully someone can show me what I’m doing wrong since I’m running out of things to try and google on.

TIA!

Update. I was able to get it working. I downloaded the FT2232 driver from FTDI but I don’t think that was my problem. I think the problem was not having ld.so.conf configured right so it would know to pick up the shared lib I installed.

Following this link is what helped me get it going:

http://openhardware.net/Embedded_ARM/OpenOCD_JTAG/

I am trying to follow the instructions on page

http://www.yagarto.de/howto/yagarto2/in … l#download

however I am stucked in the command prompt… to tell tell truth I don’t have much knowledge on what I am doing, I’m a new beginner…

I tried the following code and got the following error:

C:\TEMP\at91sam9260_getting_started_1.0>openocd-ftd2xx -f .\interface\jtagkey.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-09-21:00) svn:1606M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

Warn : Unable to open FTDI Device tried: 'Amontec JTAGkey' and 'Amontec JTAGkey A'

Error: unable to open ftdi device: 2
Runtime error, file "command.c", line 456:

I will appreciate any suggestions ?? I am using Windows XP, AT91SAM9260-EK and an ARM JTag hardware…