This is an old revision of the document!


MSP430-GCC

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

Tools

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.

wget http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-full-linux-x64-installer-9.2.0.0.run
chmod +x msp430-gcc-full-linux-x64-installer-9.2.0.0.run
./msp430-gcc-full-linux-x64-installer-9.2.0.0.run

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

GCC Open Source

Check the website for the latest version, at this time it is 9.3.1.11.

Build compiler (9.2.0.50)

mkdir -p /opt/src
cd /opt/src
wget http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50-source-full.tar.bz2
tar xjvf msp430-gcc-9.2.0.50-source-full.tar.bz2
cd msp430-gcc-9.2.0.50-source-full
chmod +x README-build.sh
./README-build.sh

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
11:03:19.41s

Install compiler (ensure there is about 1.5GB disc space free)

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

Install support files

cd /opt/src
wget http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-support-files-1.210.zip
unzip msp430-gcc-support-files-1.210.zip
cp -Rpa msp430-gcc-support-files/* /opt/msp430-gcc/

Resources

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