Hello,
installing msp430-ggc and mspdebug on Ubuntu is straight forward: just install the appropriate packages: gcc-msp430 mspdebug.
To use mspdebug with a MSP430 USB-FET you need the libmsp430.so library.
Instructions to build libmsp430.so on linux/amd64:
download & extract libboost-1.51
build libboost with static libs:
./boostrap.sh --prefix=[dir]
./b2 link=static cxxflags=-fPIC -d+2 -a
download & extract slac460c.zip
There are some minor bugs in the source code package (missing/wrong includes, default build for 32bit only) which can be fixed by applying the msp430_dllv3_os_package.patch (attached). It seems to work ok.
patch MSP430.DLLv3_OS_Package
build MSP430.DLLv3_OS_Package
Instructions how to compile with msp430-gcc:
msp430-gcc -Os -mmcu=msp430x5438 -o hello.elf hello.c
msp430-objdump -DS hello.elf > hello.lst
msp430-objcopy -O ihex hello.elf hello.hex
Instructions how to run mspdebug:
Either make sure libmsp430.so is in you LD_LIBRARY_PATH or copy it to you working directory and use this commandline:
LD_LIBRARY_PATH=. mspdebug tilib -d /dev/ttyACM0
This was tested with a USB-FET and a MSP-EXP430F5438, when running the first time you might need to do a firmware update (--allow-fw-update).
For a MSP430 Launchpad use rf2500 instead of tilib.
I hope this information is useful, but here is the disclaimer: without any warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Regards,
Lo
Links:
mspdebug homepage: http://mspdebug.sourceforge.net/index.html
libboost homepage: http://www.boost.org/
slac460c.zip: http://www-s.ti.com/sc/techzip/slac460.zip