Keil Logo

µVISION: LOCATING A CODE TABLE IN A CODE BANK


Information in this article applies to:

  • C51 Version 5 and Later
  • µVision Version 2 and Later

SYMPTOMS

I have a table that I store in CODE memory:

code BYTE const tab1 [] = { 1, 2, 3, 4, 5 };

This table is the only thing I have in the TABLE.C file. I want to locate this table in a particular code bank. I have set the bank number using the file options in µVision, however, this doesn't seem to work.

CAUSE

The bank number you selected in µVision only works with program segments (those that begin with ?PR?). The variable you have declared is a CODE segment and its segment name is ?CO?TABLE. You must manually locate code segments using the BL51 Misc Tab in the Project Options dialog.

RESOLUTION

For example, if your bank 2 starts at 0x8000 and you want to locate the code table segment at that location, in the BL51 Misc Tab of the Project Options dialog, enter the following in the Misc Controls input box:

BANK2(?CO?TABLE(0x8000))

MORE INFORMATION

  • Refer to BANKx in the BL51 User's Guide.

Last Reviewed: Friday, March 24, 2006


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.