pmeerw's blog
06 Feb 2012
Long time ago, I got a (free) TI ez430-F2013 development tool (a USB stick basically); it has a MSP430 CPU, a LED, and some pins.
Ubuntu comes with everything you need: binutils-msp430, gcc-msp430, gdb-msp430, mspdebug and a kernel driver for the USB/JTAG converter.
Use
msp430-gcc -mmcu=msp430f2013 -std=gnu99 -g ledon.c -o ledon.elf
to compile a simple program to turn on the LED. The resulting binary can be loaded using
mspdebug -d /dev/ttyUSB0 uif and executing
erase load ledon.elf runDebugging is straighforward:
run, step.
#include <msp430f2013.h>
int main (void) {
/* We want P1.0 output */
P1DIR = 1;
/* Turn on the LED */
P1OUT = 1;
return 0;
}
128 Byte RAM and 2 KB Flash Memory ought to be enough for everybody...
posted at: 22:11 | path: / | permanent link