Skip to content

Installation: Windows

Michael Koval edited this page Oct 6, 2010 · 4 revisions

Installation: Windows

Since HAX was designed on and developed for Unix-like systems, using Hax on Windows requires the installation of [[Cygwin|http://www.cygwin.com/]]. Cygwin is a Linux-like environment for Windows that gives one access to a Linux API and common utilities without installing a full-fledged operating system. When installing Cygwin be sure to select the curl, findutils, make, and tar packages.

Before using HAX to compile and upload code, we need to install its dependencies required for our architectures of interest. After you have followed the directions below for all the achitectures that you plan to use, simply download extract the most recent tarball of HAX to a directory of your choosing.

Cortex Architecture

Begin by downloading and installing CodeSourcery’s free cross-compiler for the bare-metal architecture (i.e. arm-none-eabi) from [[their website|http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3053]]. Unlike a normal installation of GCC, a cross-compiler allows us to compile code for the ARM processor on a desktop computer a normal x86 or x86_64 processor.

Once a project is compiled and linked, it is uploaded to the microcontroller using a small Python script released by STM Microelectronics. Since this script is pre-packaged as part of the HAX, we only need to download a recent release of Python from [[their website|http://python.org/download]] and continue with the instructions.

Launch Cygwin and execute the following commands to test your installation of the GCC cross-compiler and Python.

$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/arm-none-eabi/4.5.1/lto-wrapper
Target: arm-none-eabi
Configured with: ../configure --prefix=/opt/local --target=arm-none-eabi --with-newlib --enable-languages=c,c++ --disable-werror
Thread model: single
gcc version 4.5.1 (GCC)

$ python -V
Python 2.6.1

If you receive an error message instead of version information you should re-read the above installation instructions.

PIC Architecture

Currently unsupported; coming soon.

Clone this wiki locally