Hi:
I 'm trying to use Olimex arm-usb-ocd with OpenOCD and Keil LPC1768 board.
I have connected the dongle to the PC (Windows), and when a I try:
openocd -f interface/olimex-arm-usb-ocd.cfg -f target/lpc1768.cfg from the command line
I get “Error: unable to open ftdi device: device not found. Command handler execution failed”.
I verified in the device manager that the usb dongle is attached and recognized as a “Olimex OpenOCD JTAG interface” so I think it’s Ok.
I tried to search for help, and I realized that in some cases, the openocd-ftd2xxx.exe is used instead, but I don’t have this exe file. I’m using OpenOCD 0.4.0.
What could be wrong?
Thanks in advance!
Gus
gussabina:
I verified in the device manager that the usb dongle is attached and recognized as a “Olimex OpenOCD JTAG interface” so I think it’s Ok.
Wasn't that already said a milion times that precompiled binaries use libusb-win32 driver, not the ftd2xx which you probably have installed?
4/3!!
Freddie Chopin:
gussabina:
I verified in the device manager that the usb dongle is attached and recognized as a “Olimex OpenOCD JTAG interface” so I think it’s Ok.
Wasn't that already said a milion times that precompiled binaries use libusb-win32 driver, not the ftd2xx which you probably have installed?
4/3!!
Unfortunately if something is inherently confusing then people will continue to get confused. If you don’t want to keep explaining it, then the only thing you can do is make it less confusing.
Freddie Chopin:
How? (;
4/3!!
How about openocd telling the user he has an FTDI driver installed but not the open one and he needs to go read a web page explaining what to do… or maybe even offer a utility which uninstalls the FTDI driver and installs the open one. There must be a way to give the user more help than “device not found”.
ETA: openocd could tell the user…
Ok. So now I’m using
openocd-ftd2xxx.exe -f interface/olimex-arm-usb-ocd.cfg -f target/lpc1768.cfg
but i’ m still receiving an error:
Error: ft2232.c:1419 ft2232_init_ftd2xx(): unable to open ftdi devie: 2
Error: ft2232.c:1434 ft2232_init_ftd2xx(): ListDevices: 2
Error: ft2232.c:1436 ft2232_init_ftd2xx(): 0: Olimex OpenOCD JTAG A
Error: ft2232.c:1436 ft2232_init_ftd2xx(): 1: Olimex OpenOCD JTAG B
Again, the adapter is connected to the board and the PC and the board is powered up.
Do you know what could be wrong?
Do you have any other configuration that I can use to test if everything is Ok?
Thanks;
gus
What version of OpenOCD are you trying to use? Where did you get it from?
Most likely the device description does not match the description in the cfg file.
4/3!!
Hello Freddie:
I downloaded the Windows installer from your web page (http://freddiechopin.info ).
I tried openOCD.exe which didn’t work for me, and that’s the confusion. I searched on the web and I found some examples using openocd-ftd2xx.exe so I got this file from somewhere else and I tried with it without success.
Please, can you give me instructions about how to use openOCD.exe with LPC1700 and Olimex ARM usb JTAG? I followed the OCD User Manual but when I try openOCD.exe -f interface/olimex-arm-usb-ocd.cfg -f target/lpc1768.cfg I get the “Error: unable to open ftdi device: device not found. Command handler execution failed” error message (please, see my first post).
I would appreciate any help.
Regards;
Gus
gussabina:
Please, can you give me instructions about how to use openOCD.exe with LPC1700 and Olimex ARM usb JTAG? I followed the OCD User Manual but when I try openOCD.exe -f interface/olimex-arm-usb-ocd.cfg -f target/lpc1768.cfg I get the “Error: unable to open ftdi device: device not found. Command handler execution failed” error message (please, see my first post).
See my first post - you have installed WRONG drivers. The RIGHT ones are in the installation directory of OpenOCD under "drivers"
4/3!!
See also info.txt in the ‘libusb-win32_ft2232_driver-100223’ directory. (I use version 0.4.0)
I had the same problem, very frustrating, but the I found this document. This is an old topic but I want to say it, so other people don’t get frustrated