Keil Logo

C51: Identify Uncalled Library Routines


Information in this article applies to:

  • C51 Version 8

QUESTION

In my application I am getting several Linker warnings:

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_EPROMWRITE?I2C

It appears that the segments refer to some library code that is indeed not called.

Is there a way to verify that?

Also, what do I need to do to remove these warnings?

ANSWER

Verify the usage of functions using the linker cross-reference listing section which is enabled in µVision under Project - Options - Listing - Linker Listing - Cross Reference.

For libraries, it is important that each function that can be used individually gets its own source module. Structure your library this way to remove the warnings.

MORE INFORMATION

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


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.