2013-09-11 16:05:16 -05:00
|
|
|
Building OpenOCD for Windows
|
|
|
|
----------------------------
|
|
|
|
|
2013-09-19 10:21:35 -05:00
|
|
|
You can build OpenOCD for Windows natively with either MinGW-w64/MSYS
|
|
|
|
or Cygwin (plain MinGW might work with --disable-werror but is not
|
|
|
|
recommended as it doesn't provide enough C99 compatibility).
|
|
|
|
Alternatively, one can cross-compile it using MinGW-w64 on a *nix
|
2013-09-11 16:05:16 -05:00
|
|
|
host. See README for the generic instructions.
|
|
|
|
|
2013-09-19 10:21:35 -05:00
|
|
|
Native MinGW-w64/MSYS compilation
|
2013-09-11 16:07:59 -05:00
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
As MSYS doesn't come with pkg-config pre-installed, you need to add it
|
|
|
|
manually. The easiest way to do that is to download pkg-config-lite
|
|
|
|
from:
|
|
|
|
|
|
|
|
http://sourceforge.net/projects/pkgconfiglite/
|
|
|
|
|
2013-09-19 10:21:35 -05:00
|
|
|
Then simply unzip the archive to the root directory of your MinGW-w64
|
2013-09-11 16:07:59 -05:00
|
|
|
installation.
|
|
|
|
|
2013-09-11 16:05:16 -05:00
|
|
|
USB adapters
|
|
|
|
------------
|
|
|
|
|
|
|
|
You usually need to have WinUSB.sys (or libusbK.sys) driver installed
|
|
|
|
for a USB-based adapter. Some vendor software (e.g. for ST-LINKv2)
|
|
|
|
does it on its own. For the other cases the easiest way to assign
|
2014-02-06 13:47:46 -06:00
|
|
|
WinUSB to a device is to use the latest Zadig installer:
|
2013-09-11 16:05:16 -05:00
|
|
|
|
2014-02-06 13:47:46 -06:00
|
|
|
http://zadig.akeo.ie
|
2013-09-11 16:05:16 -05:00
|
|
|
|
|
|
|
For the old drivers that use libusb-0.1 API you might need to link
|
|
|
|
against libusb-win32 headers and install the corresponding driver with
|
|
|
|
Zadig.
|