Hi,
thanks for that hint. I did not know I could put the vid/pid in the
config file.
My openocd.cfg looks like this
# ftdi interface
interface ft2232
ft2232_device_desc "STM32-PerformanceStick A"
ft2232_layout stm32stick
ft2232_vid_pid 0x0640 0x002d
This did not help though. The output when I do "openocd -d" is:
Debug: 28 2 openocd.c:144 handle_init_command(): target init complete
Debug: 29 2 ft2232.c:1463 ft2232_init_ftd2xx(): 'ft2232' interface using
FTD2XX with 'stm32stick' layout (0640:002d)
Error: 30 161 ft2232.c:1506 ft2232_init_ftd2xx(): unable to open ftdi
device: 2
Debug: 31 161 command.c:427 run_command(): Command failed with error
code -100
User : 32 161 command.c:626 openocd_jim_vfprintf(): Runtime error, file
"command.c", line 456:
User : 33 161 command.c:626 openocd_jim_vfprintf():
So it does get the vid/pid right. But it still cannot find the device.
It's somehow strange that I seem to be the only one who has those
problems. There are other people using the same hardware, right? I mean
openocd supports the ST32-PerformanceStick so somebody must have tried
it before.
Thanks
Michael
Holger Schurig schrieb:
>> usbview finds the usb device and shows all the data. So I
>> tried the default stm32stick.cfg and also adapting the
>> ft2232_device_desc to what usbview showed me or using the
>> ft2232_serial to find it. Nothing helped: FT_OpenEx returns
>> with error code: 2
>>
>
> You need also the device-description to be exact.
>
> For example, in my case:
>
> $ lsusb | grep -v 1d6b
> Bus 001 Device 003: ID 15ba:0004
> $ lsusb -v | grep Olimex
> iManufacturer 1 Olimex
> iProduct 2 Olimex OpenOCD JTAG TINY
> iInterface 2 Olimex OpenOCD JTAG TINY
> iInterface 2 Olimex OpenOCD JTAG TINY
>
> So, in src/target/interface/olimex-jtag-tiny.cfg the lines need
> to be:
>
> interface ft2232
> ft2232_device_desc "Olimex OpenOCD JTAG TINY"
> # ^^^^^^^^^^^^^^^^^^^^^^^^^ that's the string
> # from my "lsusb -v | grep" command
> ft2232_layout olimex-jtag
> ft2232_vid_pid 0x15ba 0x0004
> # ^^^^^^^^^^^^^ that's the hex constanst
> # from "lsusb | grep -v" command
>
--
Technische Universität München
Michael Jäntsch
Fakultät für Informatik
Robotics and Embedded Systems
[email protected]
www6.in.tum.de
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development