mspgcc extends the GNU toolchain to support the TI MSP430 microcontroller.
...
There are two ways to install the toolchain components: from the distribution packages listed above, or from the source code itself via the links below. We have tested with Ubuntu 12.04LTS 64bit.
Source code links:
Windows
- Install the
mspgcc
packages formingw
.mingw
is a "minimalist GNU for Windows", i.e. it contains the build tools you typically find in a Linux distribution, but runs on Windows.- Download the latest version from http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/. At the time of writing,
mspgcc-20120406-p20120911.zip
. - Unzip somewhere on your computer. We recommend
C:\mspgcc\mspgcc-20120406-p20120911
.
- Download the latest version from http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/. At the time of writing,
- Add the
bin/
directory to yourPATH
. Use one of the following:To add it temporarily, open a command prompt and type
Code Block C:\Users\Thomas>set PATH=%PATH%;C:\mspgcc\mspgcc-20120406-p20120911\bin\
- To add it permanently:
- Type
Ctrl+Windows
. - Click on
Advanced System Settings
>Environment Variables
. - In
User Variables for <you>
, selectPATH
and clickEdit
. - At the end of the
Variable Value
text field, append;C:\mspgcc\mspgcc-20120406-p20120911\bin\
.
- Type
...
- install gcc-multilib library as you will need some extras from gcc: apt-get install gcc-multilib
- download the sources of the libmsp430.so library. I've put together the lib sources, a patch to correct errors on the library (only for 64bit version) and the firmware files for the FET. [download]
- unzip it and apply the patch to the folder.
- Then you will need to install libboost-*. Boost is a set of extension libraries for cpp and it is used by the libmsp430 library sources. download latest version (I used 1.5.2). Unzip it and execute:
Code Block |
---|
./boostrap.sh --prefix=[dir] ./b2 link=static cxxflags=-fPIC -d+2 -a |
...