> 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
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to