Skip to content

Board: MSP EXP430FR5969

attdona edited this page Nov 19, 2014 · 2 revisions

Setup

Setting up mspdebug with tilib driver could be quite tricky. Follow (and eventually adapt) this recipe, teste on ubuntu 14.04 64 bit:

Follow the instructions posted here:

http://www.colotronics.blogspot.com.ar/2014/08/msp430-toolchain-in-ubuntu-1404-with.html

with this recipe for tilib setup:

#udev rules, new file 61-TI-MSP430.rules in /etc/udev/rules.d
sudo bash -c "echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2047", ATTR{idProduct}=="0013", MODE="0666",   GROUP="dialout"' > /etc/udev/rules.d/61-TI-MSP430.rules" # ez-fet

sudo bash -c "echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2047", ATTR{idProduct}=="0010", MODE="0666",   GROUP="dialout" #msp-fet430uif' >> /etc/udev/rules.d/61-TI-MSP430.rules"

sudo addgroup yourUserName dialout
sudo service udev restart  

#OPTIONAL TILIB v3 installation, for msp-fet430uif debugger, or newer microcontrollers/boards (see   http://forum.43oh.com/topic/5706-use-mspdebug-to-upgrade-msp430fr5969/) ignore if you don't need it.
sudo apt-get install libudev-dev libfox-1.6-0 autotools-dev autoconf automake libtool libboost-all-dev 
mkdir tilib
cd tilib
wget http://www.ti.com/lit/sw/slac460j/slac460j.zip

wget https://github.com/downloads/signal11/hidapi/hidapi-0.7.0.zip
unzip slac460j.zip  
unzip hidapi-0.7.0.zip 
cd MSPDebugStack_OS_Package/ThirdParty/
mkdir lib
mkdir include

cd ../../hidapi-0.7.0/linux/

#Edit makefile of hidapi

sed -i 's/CFLAGS   ?= -Wall -g/CFLAGS   ?= -Wall -g -fPIC/g' Makefile
sed -i 's/CXXFLAGS ?= -Wall -g/CXXFLAGS ?= -Wall -g -fPIC/g' Makefile
sed -i 's/LIBS      = `pkg-config libusb-1.0 libudev --libs`/LIBS      = `pkg-config libusb-1.0 libudev  --libs` -lpthread/g' Makefile

#Build hidapi, copy to MSPDebugStack_OS_Package, and build libmsp430.so
make 2>&1 | tee mo
cp hid-libusb.o ../../MSPDebugStack_OS_Package/ThirdParty/lib
cp ../hidapi/hidapi.h ../../MSPDebugStack_OS_Package/ThirdParty/include
cd ../../MSPDebugStack_OS_Package/
make 2>&1 | tee mo
#Copy .so library to system path
sudo cp libmsp430.so /usr/local/lib
Clone this wiki locally