This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linker Warning

Greetings,

Within my serial receive interrupt routine I'm getting a linker warning dealing with a printf statement.

My code and the warning are shown below:

void
serial_int() interrupt 4
{ if(RI == 1)
{

serial_data = SBUF0;

// printf("data read = \n"); printf("data read = %x\n",serial_data);
} RI = 0;
}

The warning:

WARNING L15: Multiple Call To Segment
SEGMENT: ? PR?PRINTF?PRINTF
CALLER1: ?PR?SERIAL_INT?

Why is the printf statement generating a warning?

Thanks
Sparky_
Thanks

0