This tutorial describes how to install and configure mspgcc, mspDebug and Eclipse to program and debug MSP430 microcontrollers on Windows.
The method should work with slight differences on Linux and Mac. |
Copy some testing code on it:
#include <io.h> #include <stdint.h> #include "msp430x26x.h" //use your msp430 configuration! int main() { // The main function volatile uint8_t i = 0; WDTCTL = WDTPW + WDTHOLD; P2DIR |= 0x0F; // do forever: while (1) { i++; if (i == 0) { //toggle red led in gina P2OUT ^= 0x08; } } } |
Click Debug button and wait the debugger to start. The code will stop at your main.
NOTE: Make sure to Program the device before debugging using the MSP430 tab and Upload to Target option |
TI LaunchPad on Windows link