Tool/software: TI C/C++ Compiler
Hi, I am trying to run a simple code for blinking LED1 in my MSP430G2553 IN CCSV5 which is as follows:
#include <msp430g2553.h>
unsigned int i;
void main(void) {
// stop watchdog timer
WDTCTL = WDTPW + WDTHOLD;
// set up bit 0 of P1 as output
P1DIR = 0x01;
// intialize bit 0 of P1 to 0
P1OUT = 0x00;
// loop forever
for (;;) {
// toggle bit 0 of P1
P1OUT ^= 0x01;
// delay for a while
for (i = 0; i < 20000; i++);
}
}
I am getting the following errors :
#10010 errors encountered during linking; "MSP430_Learn_1.out" not
#10056 symbol "main" redefined: first defined in "./main.obj"; redefined
Could someone tell me how to fix these ?
Thanks in advance