User Tools

Site Tools



Cross compilation for Windows

Setup MXE toolchain

Follow instructions here: mxe

Get openocd latest version

git clone
cd openocd

If required, apply below patches

  • Workaround for Micron n25q256

flashid.patch (Used on USBSniffer and PCIeScreamer)

git apply flashid.patch
  • Quad enabled bit for Quad SPI

qe_command.patch (Not necessary, this bit should have been set already during USBSniffer board production)

git apply qe_command.patch


./configure --prefix= --host=i686-w64-mingw32.static --enable-ftdi
make -j pkgdatadir=

Create a Windows package layout

make pkgdatadir= DESTDIR=/tmp/openocd install
cd /tmp
ls -l openocd/
total 0
drwxr-x---  2 po po  60 Jan 16 13:57 bin
drwxr-x---  2 po po  60 Jan 16 13:57 OpenULINK
drwxr-x--- 11 po po 300 Jan 16 13:57 scripts
drwxr-x---  4 po po  80 Jan 16 13:57 share
zip -r openocd/

Windows tarball

tools/openocd.txt · Last modified: 2019/01/16 17:36 by po