Keil Logo

L166: Relocating Register Banks


Information in this article applies to:

  • C166

QUESTION

How can I relocate a register bank to another location in on-chip RAM? I have tried the following:

SECTIONS(myreg%REG (0xFD00))
SECTIONS(myreg%*REG* (0xFD00))

but they both give errors stating the section or register bank cannot be found.

ANSWER

You can relocate a register bank using the L166 REGBANK directive. For example, to relocate the register bank myreg to FD00H you would use:

REGBANK(myreg(0xFD00))

To set this directive in µVision:

  • Choose Options for Target from the Project menu
  • Click on the L166 Misc tab
  • Enter

    myreg(0xFD00)
    

    into the RegBank box

MORE INFORMATION


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.