Keil Logo

BL51: WARNING 19 (COMMON CODE SEGMENTS ...)

Information in this article applies to:

  • C51 All Versions

SYMPTOMS

I am writing an application that uses code banking and I receive the following warning:

WARNING L19: COMMON CODE SEGMENTS LOCATED TO BANKED AREA

Can you explain what this warning means?

CAUSE

This warning is issued if Common Area segments must be located in the Bank Area (because the Common Area is too small).

For example, if you specify a BANKAREA from 0x8000 to 0xFFFF and your Common Area is larger than 32K, the Common Area segments located above 0x8000 must be duplicated in every bank.

This warning is not issued if the BANKAREA is 64K (0-0FFFFh). In such a case, the Common Area is always located in the Bank Area.

RESOLUTION

This warning is intended to inform you that code memory in each code bank is wasted. Note that this is not a critical warning. The application is completely functional. The linker makes duplicate copies of Common Area segments in each Code Bank to make sure your program works.

To resolve this problem, you must reduce the size of the Common Area or decrease the size of the BANKAREA.

You may disable this warning with the DISABLEWARNING linker directive which you may select under µVision Project -> Options for Target -> Lx51 Misc -> disable Warning numbers.

MORE INFORMATION

Last Reviewed: Tuesday, July 19, 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.