I've been trying to turn on the LEDs on my MSP430G2553 and it just doesn't work. I've tried the code examples from TI, the pre-generated code composer studio LED blinking project, and even previous code that worked on an MSP430 from the past. None of them seem to work. What could be the problem? Could it be faulty hardware? Here's my code:
#include <msp430.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
for (;;)
{
volatile unsigned int i;
volatile unsigned int j;
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
i = 25000; // Delay
while(i--) {
j = 2;
while(j--);
}
}
}