debaillie:
I joined the forum just for the purpose of finding out how to drive two instances of ARM-USB-OCD from the same host at the same time. Before posting, I took a chance searching on the keyword “multiple” and I found your solution. I’ll be baptizing my second pod ASAP.
One addition: I needed to enable “edit mode” in order to untick “only program blank devices”.
After the “read and parse” step, it populated many fields with Olimex parameters.
Device Type: FT2232C
Own VID & PID
Vendor ID: 15BA
Product ID: 0003
Manufacturer: Olimex
Product Description: Olimex OpenOCD JTAG
Bus powered 300mA
Side A RS232 UART/D2XX
Side B RS232 UART/Virtual COM Port
When programming completed, it displayed the message “Programmed xSerial Number: 12349876” in the status box.
My changed pod as reported by “USB Device Viewer” (a Microsoft tool available from the FTDI web site):
Device Descriptor:
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x15BA
idProduct: 0x0003
bcdDevice: 0x0500
iManufacturer: 0x01
0x0409: "Olimex"
iProduct: 0x02
0x0409: "Olimex OpenOCD JTAG"
0x0409: "Olimex OpenOCD JTAG"
0x0409: "Olimex OpenOCD JTAG"
iSerialNumber: 0x03
0x0409: "12349876"
bNumConfigurations: 0x01
In my unchanged ARM-USB-OCD pod, the iSerialNumber is 0, and the line following is not displayed.
iSerialNumber: 0x00
After programming the serial number, the USB wizard enumerated my device (the annoying three pass process).
Something I should point out: without the serial number, the “wiz” will run the device driver installation process whenever the pod is moved to a different USB port.
After programming the serial number, I’ve been able to move the pod to different USB ports and NOT have the nasty wiz repeat the driver install. So there’s a small benefit even if you have only a single device.
(update)
I’ve now programmed both pods with distinct serial numbers and verified the JTAG and serial port functionality. Everything is fine. FTDI has a nice tool.
Needed to append the letter A to the serial number in the ft2232_serial directive before the device scan was successful.
Under Device Manager, Serial port properties, Details tab, Device Instance ID property, the assigned serial number can be associated with the assigned COM port.
FTDIBUS\VID_15BA+PID_0003+12349876B\0000
Under Port Settings tab, Advanced, the COM assignment can be manually changed. I set mine up so my serial numbers and port settings are in a known correspondence. For a long time I didn’t know Windows offered this little bread-crumb of self empowerment. I had become too discouraged to look.
Now with my Olimex pods, more guessing which pod has which serial port after every USB connection event. Nice.