Skip to content

Instantly share code, notes, and snippets.

@natevw
Created November 27, 2023 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natevw/4ae353c2b7bec366439da9979a882cb0 to your computer and use it in GitHub Desktop.
Save natevw/4ae353c2b7bec366439da9979a882cb0 to your computer and use it in GitHub Desktop.
MSP430 in aarch VM notes

During https://github.com/natevw/msp430f5529-repro bringup for cr1901/msp430f5529#2 (comment).

Initial project setup:

cargo generate --git https://github.com/rust-embedded/msp430-quickstart

wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-9.3.1.11_linux64.tar.bz2

cd
tar -xjvf msp430-gcc-9.3.1.11_linux64.tar.bz2
mv msp430-gcc-9.3.1.11_linux64 msp430-gcc
export PATH="${HOME}/msp430-gcc/bin:${PATH}"
# doesn't work, Intel arch of course…!!

Compile from source:

wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-9.3.1.11-source-full.tar.bz2
tar -xjvf msp430-gcc-9.3.1.11-source-full.tar.bz2

#wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-9.3.1.11-source-patches.tar.bz2
#tar -xjvf msp430-gcc-9.3.1.11-source-patches.tar.bz2


sudo apt-get install build-essential flex bison texinfo
cd msp430-gcc-9.3.1.11-source-full
chmod +x README-build.sh
./README-build.sh
  # exits unhappy with missing Python 2.7 but seems to have build the main executables already

ln -s ~/msp430-gcc-9.3.1.11-source-full/install/usr/local ~/msp430-gcc

export PATH="${HOME}/msp430-gcc/bin:${PATH}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment