Hi All,
Can someone please help me out. I'm struggling with my MSP430 on my Launchpad!
I want to flash my MSP430G2553 (also tried with a MSP430G2131). After flashing the LED's blink and my application stops running. Timer interrupts are not fired (in the debugger it works fine)!
I've tried: MSP430Flasher, UniFlash and FET-Pro430 Lite. All without luck!
This is my code:
#include <msp430.h> unsigned int i = 0; void main(void) { WDTCTL = WDTPW + WDTHOLD; P1DIR |= BIT6; P1OUT &= ~BIT6; //Do some stupid blinking... for (i=10; i>0; i--) { P1OUT ^= BIT6; __delay_cycles(100000); } P1OUT &= ~BIT6; __delay_cycles(200000); TA0CCR0 = 12000; TA0CCTL0 = 0x10; TA0CTL = TASSEL_1 + MC_1; _BIS_SR(LPM0_bits + GIE); while(1) { } } #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer0_A0 (void) { P1OUT ^= BIT6; }
Did I miss something? Many thanks!!
Sander