Hi,

Xiaofan Chen wrote:
> On Wed, Mar 27, 2013 at 10:45 PM, Jonathan Dumaresq
> <jdumar...@cimeq.qc.ca> wrote: 
>> Ok. I found a small solution to be able to do this.
>> 
>> I modify the libusb1_common.c jtag_libusb_open
>> 
>> I add this line in the for loop
>> 
>>                 errCode = libusb_open(devs[idx], out);
>>                 if(errCode >= 0)
>>                 {
>>                         /** Free the device list **/
>>                         libusb_free_device_list(devs, 1);
>> 
>>                         if (errCode < 0)
>>                                 return errCode;
>>                         return 0;
>>                 }
>> 
>> This worked. When I open the first the second device it's fail when
>> he find the first one but at least it continue until he foun the
>> second one. 
> 
> This will probably work. The issue is that you do not know which one
> is the first and which one is the second, not initially anyway. 

Yeap. First plugged is the first found. At least i could continue testing
both board at same time !

> 
> Using the USB serial number is the correct fix in this case since
> ST-Link has unique serial number. 
> 
> For those dongles without a unique serial number, then things are
> more complicated. 
> 
> 
> 
> --
> Xiaofan

Jonathan



------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to