Hello, I am porting some code from IAR to GCC, and I am getting a strange error message on one of my interrupts. I read the GCC help and think that I changed the code correctly, but the error is still there. Here's the code:

interrupt (UART1TX_VECTOR) usart1_tx(void) {
char next;
switch (chars_left) {
case -1: //Writing null-terminated string
next = *(++tx_buffer);
if (next != 0) {
TXBUF1 = next;
} else {
chars_left = 0;
}
break;
case 0: //Nothing left to write
break;
default: //Writing fixed length data
next = *(++tx_buffer);
TXBUF1 = next;
chars_left--;
break;
}
return;
}

and the error that I get is "C:/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_reset_vector__.o)(.init+0x38): In function '_reset_vector__':: undefined reference to 'main'

Anyone know what this error means?


MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.

Reply via email to