MSP430 Development on Linux using the eZ430-F2013
Notes below are for debian wheezy:
apt-get install gcc-msp430 mspdebug wget http://41j.com/blog/wp-content/uploads/2014/11/ti_3410.fw sudo cp ti_3410.fw /lib/firmware/ #compile code and program device wget http://41j.com/blog/wp-content/uploads/2014/11/myprog.c msp430-gcc -Os -Wall -mmcu=msp430f2013 -std=gnu99 ./myprog.c -o myprog sudo mspdebug uif -d /dev/ttyUSB0 'prog ./myprog'
notes
Useful information here on where to find firmware:
msp430 firmware
I’ve used the following makefile in the past with some success: download
This is the code I used for the test above:
#include <msp430x20x3.h> int main (void) { WDTCTL = WDTPW | WDTHOLD; P1DIR = 0xFF; for(;;) { P1OUT=0; __delay_cycles(2500000); P1OUT=1; __delay_cycles(2500000); } return 0; }