Stacey Sheldon wrote:
> This commit adds the 'ft2232_bus_addr' configuration
> command which allows the user to specify the fully
> qualified bus address of the ft2232 device.

I think this is a good addition, but..


> The format of the address is the same as for the
> equivalent -s option in lsusb for selecting the device:
>   <bus>:<devnum>
> 
> For example, if lsusb reports something like this:
>   Bus 002 Device 084: ID 0403:6010 Future Technology Devices
>                                    International, Ltd FT2232C
>                                    Dual USB-UART/FIFO IC
> 
> Then this configuration command will select this device in
> openocd:
>   ft2232_bus_addr 002:084

..unfortunately this documentation does not agree with the code.

For the above device lsusb would also accept -s 2:84 without padding.
IMO this is highly desirable also in openocd, but it may not be
completely unproblematic since I am not convinced that this way of
specifying a bus address is actually consistent across all platforms
supported by libusb. In particular I think Windows may provide
another type of bus address. I have to check this.


//Peter
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to