Keil™, An ARM® Company

Technical Support

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.

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