Compile urJTAG for Windows
From DP
Contents |
Introduction
Urjtag is a modern tool for communicating over JTAG with flash chips, CPU's etc. This version aimed at supporting Bus Blaster high speed JTAG/flash programmer development
We are going to cross-compile urJTAG from other platform, preferably, Linux, and also under Cygwin. The compiled version will run in native MS Windows.
Requirements
Before you can compile Urjtag for windows, you need to download and install the following files for your build:
Autoconf
Automake
Bash
Bison
Bzip2
CMake
FlexGCC (gcc, g++)
GNU MakeGNU
Sed
Intltool
LibC for 32-bit
Libtool
OpenSSL-dev
Patch
Perl
Perl XML::Parser
Pkg-config
SCons
UnZip
Wget
XZ Utils
Yasm
Aside from these latest builds, You also need the following:
The latest Urjtag from the svn, The required windows libraries from ftdichip.com
Building the Cross Compile Environment
After downloading the needed files, you have to run configure, make and make install to properly build the environment
Testing the build Environment
Flags and Parameters
Patching Urjtag
patch -p0 -i path-to-patch-file
Cross Compiling Urjtag for windows
When everythings work well, Here is the sequence for cross-compilation: Download the latest Urjtag from the repositories:
svn co http://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk urjtag
cd urjtag/urjtag
./autogen.sh
make
Testing and Running on windows
Transfer the exe file created from the cross-compiler to a subdirectory and run the jtag.exe. You should see the following:
Some trick
You may download the windows binary from the repository and just replace the exe file with your build. Be sure also to move the FTDI libraries into its own directories or include it in the path.
References
http://urjtag.sourceforge.net/
