Keil Logo

L166: Warning 22 (Class Range Not Given)


Information in this article applies to:

  • C166 All Versions

QUESTION

When I compile and link my 166 application program, I get the following warnings from the linker.

*** WARNING 22: CLASS RANGE NOT GIVEN IN INVOCATION LINE
    CLASS:   NCONST

*** WARNING 22: CLASS RANGE NOT GIVEN IN INVOCATION LINE
    CLASS:   NCODE

*** WARNING 22: CLASS RANGE NOT GIVEN IN INVOCATION LINE
    CLASS:   NDATA

What's wrong?

ANSWER

You must specify the address range for each of the above classes on the L166 Linker command line. You may do this from µVision by selecting the L166 Linker from the Options menu. Select the classes tab and enter the class ranges on the provided input lines.

For example:

NDATA(0x008000-0x00BFFF),
NCODE(0x000000-0x003FFF),
NCONST(0x000000-0x003FFF)

MORE INFORMATION

  • Refer to CLASSES in the L166 User's Guide.

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.