Hi,

Spencer Oliver wrote:
> On 27 March 2013 13:38, Jonathan Dumaresq <jdumar...@cimeq.qc.ca>
> wrote: 
>> Hi,
>> 
>> Is it possible to use 2 STLINKV2 at same time on the same PC ?
>> 
>> I need to debug communication between 2 board and I would like to
>> use both debugger. 
>> 
> 
> Currently no, support would need adding by using the serial number to
> select the correct stlink. 
> It is supported in the new ftdi driver, so that could be used a
> starting point - see mpsse.c:open_matching_device 
> 
> Cheers
> Spen

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. 

Jonathan



------------------------------------------------------------------------------
Own the Future-Intel&reg; 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://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to