Keil™, An ARM® Company

Technical Support

L166: RELOCATING REGISTER BANKS


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03

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

  • Refer to REGBANK 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