|ARM Technical Support Knowledge Articles|
Applies to: L166 Linker/Locator
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?
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))
Article last edited on: 2005-07-15 15:41:11
Did you find this article helpful? Yes No
How can we improve this article?