On Sun, Jun 23, 2013 at 4:34 AM, Paul Fertser <[email protected]> wrote:
> So my untested proposal for the future windows OpenOCD releases is to:
>
> 1. Remove all libusb-win32 files from the distribution archive;
>
> 2. Compile OpenOCD using libusb-compat for those drivers that are not
> ported to libusb-1.x or the common layer yet;
>
> 3. State in the drivers readme that if one is using stlink and has
> vendor's drivers installed he doesn't need anything extra;
>
> 4. Rephrase the Zadig installation instructions a bit to make it more
> clear for the non-native speakers that WinUSB driver _must_ be used
> for all the USB adapters (and either do not mention libusb-win32 at
> all or prohibit installing it :) )
>
> What do you think?

BTW, in my distro of OpenOCD binaries (only up to 0.6.1), I have the following
readme.txt with regard to driver installation. Maybe it will help.
At that time, libusbx is at 1.0.13 release. Now 1.0.15 release is
the latest and 1.0.16 is in rc1 stage.

Download link: 
https://code.google.com/p/picusb/downloads/detail?name=openocd-0.6.1_mxe_mingw32.zip

*******************************
1) ST-Link V2: use the driver from ST (winusb based)

2) libusb-1.0 drivers are required for:
- ST-LINK V1
- J-Link
- FTDI FTx232 adapters when using config files from
interface/ftdi/ subfolder (mpsse engine)

You can install libusb-1.0 drivers using Zadig software from
the libwdi project
https://sourceforge.net/projects/libwdi/files/zadig/

You can choose to use winusb.sys, libusb0.sys, or libusbk.sys.
In general, they should perform the same but Winusb.sys
support in libusbx 1.0.13 may be more mature than libusb0.sys
and libusbk.sys.

For ST-Link V1 and J-Link, you may want to use the libusb-win32
filter driver since you can keep the existing vendor driver.

For FTx232 adapters (USB composite device), you can not use
the filter driver since libusbx 1.0.13 does not support
the filter driver for USB Composite device.

3) Other USB JTAG debuggers including FTDI FTx232 adapters when
not using config files from interface/ftdi/ subfolder (not using
the new mpsse engine)

Use Zadig to install libusb-win32 drivers (device driver or
filter driver)

*********************************************

-- 
Xiaofan

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to