Both compilers which are used for building firmware (sdcc for FX2 and gcc for FX3) come from the Unix-world. They have been ported to Windows but unfortunately Windows is a quite unfriendly environment for such programs. Some SDK's hide this behind an IDE (e.g. the Cypress FX3 SDK is delivered with Eclipse). ZTEX does no go this way.
The building rules of the ZTEX SDK are described by platform and IDE independent Makfiles. This tutorial gives some hints for setting up the development environment and describes how the SDK can be integrated into an IDE.
Additional information can be found at USB driver for Windows
pacman -S msys/make
pacman -S msys/mc
Makfile.conf, see Tutorial -- Compilation of an example. Spaces and other odd signs in directory names cause a lot of trouble. In order to prevent this, create a few symlinks without spaces, e.g. link the installation directory of the Cypress FX3 SDK to
bash.exeof your MSys(2) Installation. Both shells work. On the test system it is
c:\mingw\msys\1.0\bin\bash.exeand the SDK is installed in
c:\mingw\msys\1.0\bin\bash -l -c "make -C /s/ztex/examples/memfifo [<target>]"
This builds a target of the memfifo example in
examples/memfifo. Typical targets are
distclean, see makefiles
The host software can be compiled and executed without GNU tools. Just the class and JNI library location (in the example above:
s:\ztex\usb4java) has to be added to the
CLASSPATH environment variable.