Keil Logo

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
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.