Keil Logo

BL51: WARNING 15 (MULTIPLE CALL TO SEGMENT)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

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

WARNING L15:  MULTIPLE CALL TO SEGMENT
SEGMENT:  segment-name
CALLER1:  segment-name
CALLER2:  segment-name

ANSWER

The specified segment is called from two levels, CALLER1 and CALLER2; e.g., main and an interrupt function.

This has the same effect as a recursive call and may thus lead to the overwriting of parameters or data. If you are calling a function from a main level and an interrupt level, the main level segment is reported as c_startup which is defined in the startup file (NOT main). This can cause some confusion as the segment name isn't defined by the user and the source file name may be unclear.

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.