ARM Technical Support Knowledge Articles

LOCATING A CODE TABLE IN A CODE BANK

Applies to: uVision IDE

Answer


Information in this article applies to:


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 uVision, however, this doesn't seem to work.

CAUSE

The bank number you selected in uVision 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

Article last edited on: 2006-03-24 15:11:10

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential