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!