This is is pre-built and open source code compiler tool chain for various platforms cross-compiling for the MSP430 range of MCUs.


The Motorola srecord utility is required to convert the hex output from GCC to TI text format files.

apt-get install srecord

GCC Pre-built

Debian Linux comes with an old package (2012) which is adequate for a range of micros.

apt-get install binutils-msp430 gcc-msp430 msp430-libc msp430mcu

An updated tool chain is also available from TI which is needed for newer and large model devices.

For example, the TI compiler supports the large memory model on the MSP430F5438A.

chmod +x

Install to /opt/msp430-gcc or anywhere else.

GCC Open Source

Install tools
apt install build-essential texinfo bison flex python python-dev libexpat-dev libmpfr-dev libisl-dev libgmp-dev libmpc-dev

Check the TI website for the latest version, at this time the compiler is and the support files are 1.212.

Build compiler
mkdir -p /opt/src
cd /opt/src
wget ""
tar xjvf msp430-gcc-
cd msp430-gcc-
chmod +x

On a Raspberry Pi 3B this process takes quite some time and needs about 8GB of disc space.

Build Complete [toolchain root directory: install/usr/local/bin]
+ exit 0

On a RPi4, it took considerably less time to build.

Build Complete [toolchain root directory: install/usr/local/bin]
+ exit 0
Install compiler (ensure there is about 1.5GB disc space free)


mkdir -p /opt/msp430-gcc
cp -Rpa install/usr/local/* /opt/msp430-gcc/


cd install
find | cpio -pdumva /
Install support files
cd /opt/src
wget ""


cp -Rpa msp430-gcc-support-files/* /opt/msp430-gcc/


mkdir -p /usr/local/include/msp430
cp -Rpa msp430-gcc-support-files/include/* /usr/local/include/msp430


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies