ARM Technical Support Knowledge Articles

WARNING 23 (NDATA MUST FIT IN ONE 16K PAGE)

Applies to: L166 Linker/Locator

Answer

QUESTION

After updating to C166 V3.11 we are starting to have the undocumented linker warnings:

*** WARNING 23: NDATA/NDATA0 OR NCONST MUST FIT IN ONE 16KB PAGE
    CLASS:   NCONST

*** WARNING 23: NDATA/NDATA0 OR NCONST MUST FIT IN ONE 16KB PAGE
    CLASS:   NDATA

*** WARNING 23: NDATA/NDATA0 OR NCONST MUST FIT IN ONE 16KB PAGE
    CLASS:   NDATA0

How can we fix this problem?

ANSWER

The linker is complaining about the length of NCONST, NDATA, and NDATA0. Remember that these memory classes must reside in a single 16K memory page.

You must specify the memory area for these memory classes on the linker command line using the CLASSES directive. The range of the memory must be specified (010000h-013FFFh, for example). The following linker command line provides an example of how to do this:

L166 ... CLASSES(NDATA (10000H-13FFFH), NDATA0 (10000H-13FFFH))

MORE INFORMATION

Article last edited on: 2005-07-15 15:41:11

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential