Skip to content
Snippets Groups Projects
Select Git revision
  • dba153bbce59985b0d8a23fc8d01c3b51d7e8528
  • master default protected
  • v0.10.0
  • v0.10.0-rc2
  • v0.10.0-rc1
  • v0.9.0
  • v0.9.0-rc1
  • v0.8.0
  • v0.8.0-rc2
  • v0.8.0-rc1
  • v0.7.0
  • v0.7.0-rc2
  • v0.7.0-rc1
  • v0.6.1
  • v0.6.0
  • v0.6.0-rc2
  • v0.6.0-rc1
  • v0.5.0
  • v0.5.0-rc2
  • v0.5.0-rc1
  • v0.4.0
  • v0.4.0-rc2
22 results

README.Windows

Blame
  • user avatar
    Andreas Fritiofson authored and Spencer Oliver committed
    Change-Id: I5ebc924ab66c86f1902942bebc203a34d97abc64
    Signed-off-by: default avatarAndreas Fritiofson <andreas.fritiofson@gmail.com>
    Reviewed-on: http://openocd.zylin.com/1899
    
    
    Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
    Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
    Tested-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
    09e9625d
    History
    README.Windows 1.87 KiB
    Building OpenOCD for Windows
    ----------------------------
    
    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
    host. See README for the generic instructions.
    
    Native MinGW-w64/MSYS compilation
    -----------------------------
    
    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/
    
    Then simply unzip the archive to the root directory of your MinGW-w64
    installation.
    
    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
    WinUSB to a device is to use the latest Zadig installer:
    
      http://zadig.akeo.ie
    
    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.
    
    If you need to use the same adapter with other applications that may
    require another driver, a solution for Windows Vista and above is to
    activate the IgnoreHWSerNum registry setting for the USB device.
    
    That setting forces Windows to associate the driver per port instead of
    per serial number, the same behaviour as when the device does not contain
    a serial number. So different drivers can be installed for the adapter on
    different ports and you just need to plug the adapter into the correct
    port depending on which application to use.
    
    For more information, see:
    
      http://msdn.microsoft.com/en-us/library/windows/hardware/jj649944(v=vs.85).aspx
      http://www.ftdichip.com/Support/Knowledgebase/index.html?ignorehardwareserialnumber.htm