ARM Technical Support Knowledge Articles

WARNING 16 (UNCALLED SEGMENT)

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-17 11:07:36

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential