Jump to: navigation, search

Platform details

Processor MSP430F5529
Architecture MSP430
Instruction sets MSP430
Memory 128kB Flash, 8kB RAM

Hardware modifications

None necessary, attach probes to the 3V3 jumper.

Software setup

udev rules

$ cat /etc/udev/rules.d/62-msp-exp430f5529lp.rules
ATTRS{idVendor}=="2047", ATTRS{idProduct}=="0013", MODE="0666", GROUP="plugdev"

GDB server

To build:

$ git clone git:// mspdebug
$ cd mspdebug
$ make

To run:

$ ./mspdebug ezfet gdb

This starts a gdb server on port 2000, however doesn't seem to allow flashing of the device (although you can debug, and step through programs).

$ wget
$ unzip
$ cd MSPDebugStack_OS_Package

$ wget
$ patch -p1 <slac460f_unix.diff
$ cd ThirdParty
$ chmod +x 
$ ./ 
$ cd ..
$ make
$ sudo make install

This creates, which allows the tilib driver of mspdebug to be used. This seems to be able to successfully flash the board.

 $ ./mspdebug tilib gdb


$ apt-get install gcc-msp430 msp430mcu gdb-msp430

The C library can be installed from the package msp430-libc. However this is missing several functions. If trying to run BEEBS on the board then the required version of pow is missing from the library. The following steps patch the library:

$ git clone git:// 
$ cd msp430-libc
$ git checkout release/20120224
$ [Put patch file listed below into msp430_libc_patch]
$ patch -p1 < msp430_libc_patch
$ ./configure
$ cd src
$ make
$ sudo make PREFIX=/usr install

Patch file:

diff --git a/src/libm/ef_pow.c b/src/libm/ef_pow.c
index 9a21339..03dc0ff 100644
--- a/src/libm/ef_pow.c
+++ b/src/libm/ef_pow.c
@@ -257,3 +257,16 @@ float powf(float x, float y)
        else SET_FLOAT_WORD(z,j);
        return s*z;
+#ifdef _DOUBLE_IS_32BITS
+#ifdef __STDC__
+   double pow(double x, double y)
+   double pow(x, y)
+   double x, y;
+   return (double) powf((float) x, (float) y);


This section is current work in progress on getting a tracing simulator to work.

Build GDB as in [1]

Currently the simulator with GDB does not support the extended instruction set, so binaries must be build with -mcpu=430.

Following command needed to patch GDB.

sed -i -e 's/@colophon/@@colophon/' \
      -e 's/' bfd/doc/bfd.texinfo

Apply the patch at [2] to fix the simulator.