Keil™, An ARM® Company

Technical Support

RTX51 TINY: WARNING 16 (UNCALLED SEGMENT)


Information in this article applies to:

  • RTX51 Tiny

QUESTION

I have created the following simple RTX51 Tiny program.

void t1 (void);
void t2 (void);

void t1 (void) _task_ 1
{
}

void t2 (void) _task_ 2
{
}

When I compile this, I receive the following linker errors:

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?T1?MAIN

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?T2?MAIN

*** WARNING L10: CANNOT DETERMINE ROOT SEGMENT

What causes these errors and how do I eliminate them?

ANSWER

The error is caused by the function prototypes:

void t1 (void);
void t2 (void);

You do not need prototypes for task functions. If you remove these, then no errors are generated by the linker.

MORE INFORMATION

SEE ALSO

Last Reviewed: Sunday, July 17, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure