Keil Logo

BL51: WARNING 16 (UNCALLED SEGMENT, IGNORED FOR OVERLAY ...)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When I attempt to link my project, the linker responds with the following diagnostic:

WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: segment-name

ANSWER

This warning occurs when functions which are not called are contained in a program (e.g. for test purposes). The function specified is excluded from the overlay process in this case. Often this warning is accompanied by

ERROR L107: ADDRESS SPACE OVERFLOW

If you fix the uncalled warning, then Error 107 is often cleared as well.

There are two ways to solve this problem.

  1. Call the uncalled function from somewhere in your program.
  2. Remove or #if out the function that is not called. You can do that using #if 0 in front of and #endif after the uncalled function. For example:
    #if 0
    void uncalled_function (void)
    {
    }
    #endif
    

MORE INFORMATION

SEE ALSO 

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 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.