Keil Logo

L166: Locating Multiple Sections Without Specifying Names


Information in this article applies to:

  • C166

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.

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.