====MSP430 Flasher====
The only way to fetch the source for this tool is to install
a binary blob for AMD64.
===Fetch===
wget "https://dr-download.ti.com/software-development/software-programming-tool/MD-szn5bCveqt/1.03.20.00/MSPFlasher-1_03_20_00-linux-x64-installer.zip"
unzip MSPFlasher-1_03_20_00-linux-x64-installer.zip
chmod +x ./MSPFlasher-1.3.20-linux-x64-installer.run
./MSPFlasher-1.3.20-linux-x64-installer.run
cd "$HOME/ti/MSPFlasher_1.3.20/"
tar -zcvf mspflasher.tgz Source/
===Dependencies==
First install [[https://wiki.kewl.org/dokuwiki/tools:mspds|libmsp430.so]].
===Extract===
Extract files.
sudo -s
mkdir -p /opt/src/MSPFlasher
cd /opt/src/MSPFlasher
tar zxvf ~/mspflasher.tgz
cd Source
===Patch===
Apply fixes.
sed -i 's/char cOpt;/int cOpt;/' Support.cpp
sed -i 's/-lmsp430/-lmsp430 -lpthread/' Makefile
===Install===
Make the binary and install it.
make
cp ../MSP430Flasher /usr/local/bin/
===Resources===
[[https://www.ti.com/lit/ug/slau654e/slau654e.pdf|User guide]]
/*
[[https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/836999/msp430flasher-compiled-to-run-on-arm-architecture?tisearch=e2e-sitesearch&keymatch=MSP430-FLASHER|TI Forum]]
*/