Perhaps that error is related to this statement: if ( test == 10) break;
You're breaking out the the FOR loop with that statement, which isn't necessary (or advised). Try commenting it out and see if you still get that error. One more thing. MY_WAIT won't work as you expect: http://mspgcc.sourceforge.net/doc_appendixE.html Look at the very last tip on the bottom of the page. It should look something like this: for(i=0;i<20000;i++) __asm__ __volatile__("; loop"); Hope that helps, Ale > hello, > > i was able to compile the following program with the command > > msp430-gcc -mmcu=msp430x149 -Wall -pedantic hello.c -o hello > > then i load hello into msp430-insight by opening the file. > > i get this error in the command line and i don't know what it means. > > 0x113e <_unexpected_>: reti > > please advise. thanks. > > ml > > > **************************** > /* this is a simple blink test*/ > > #include <stdio.h> > #include <stdlib.h> > #include <io.h> > void main(void){ > int i; > int test =0; > WDTCTL = WDTPW + WDTHOLD; > /*set the outputs*/ > P2DIR |= 0x80; /*set yellow*/ > P4DIR |= 0x80; /*set green*/ > P6DIR |= 0x80; /*set red*/ > > #define MY_WAIT for(i = 0; i< 20000; i++); > > /*turn off all the lights*/ > > /*turn off yellow*/ > P2OUT |= 0x80; > > /*turn off green*/ > P4OUT |= 0x80; > > /*turn off red*/ > P6OUT |= 0x80; > > > for(;;){ > > test = test +1; > > /*turn on yellow*/ > P2OUT &= 0x7F; > MY_WAIT > > /*turn off yellow*/ > P2OUT |= 0x80; > MY_WAIT > > /*turn on green*/ > P4OUT &= 0x7F; > MY_WAIT > > /*turn off green*/ > P4OUT |= 0x80; > MY_WAIT > > /*turn on red*/ > P6OUT &= 0x7F; > MY_WAIT > > /*turn off red*/ > P6OUT |= 0x80; > MY_WAIT > > if ( test == 10) break; > } > > }
