Keil™, An ARM® Company

Technical Support

L166: LOCATING MULTIPLE SECTIONS WITHOUT SPECIFYING NAMES


Information in this article applies to:

  • C166 Version 4.02

QUESTION

I wish to locate one NCONST section at 8000H and the rest starting at 9000H. How can I achieve this without specifying every single NCONST section name in the SECTIONS directive?

ANSWER

You can use the GROUPS directive to specify the starting address for a particular group. Any sections specified with the SECTIONS directive are exceptions to this. For example:

SECTIONS(?NC?BOOTLOAD%NCONST (0x8000))
GROUPS(NCONST (0x9000))

will locate the section ?NC?BOOTLOAD at 8000H and the rest of the NCONST sections starting at 9000H.

MORE INFORMATION

  • Refer to GROUPS in the L166 User's Guide.
  • Refer to SECTIONS 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