Sorry, I am not a dev, so the information I provide might be incomplete. But it 
looks like the patch is addressing only device opening, but not the proper 
closing. Also some errors are printed by the "jtag_libusb_open" from 
'libusb1_common.c' while it is trying to open the interfaces, in particular by 
these lines:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                errCode = libusb_open(devs[idx], &libusb_handle);

                if (errCode) {
                        LOG_ERROR("libusb_open() failed with %s",
                                  libusb_error_name(errCode));
                        continue;
                }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But then the device is opened and seem to work correctly.


---

** [tickets:#96] ti_icdi_usb not choosing the right interface on Windows 8.1**

**Status:** new
**Milestone:** 0.9.0
**Created:** Tue Apr 28, 2015 10:10 PM UTC by Eugene Sh.
**Last Updated:** Tue Apr 28, 2015 10:10 PM UTC
**Owner:** nobody

The Tiva C launchpad with onboard TI ICDI is creating 3 different devices under 
the same VID:PID. Using the `listdevs` example util from libusb-1.0 bundle:

1cbe:00fd (bus 3, device 3) path: 1.1
1cbe:00fd (bus 3, device 3) path: 1.1

And "Stellaris Virtual serial port" in addition. The ti_icdi_usb.c is using the 
"libusb_open_device_with_vid_pid" function to find the FIRST device with the 
given VID:PID and 
attempt to open it, which is failing on Windows 8.1 (it worked on Windows 7). 
It appears that the enumeration order have changed between the win versions. 
[This patch](http://openocd.zylin.com/#/c/2527/) appears to address this issue 
partially.



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to