ARM Technical Support Knowledge Articles

SPECIFYING CODE BANKS FOR BANK SWITCHING

Applies to: uVision (Version 1) IDE

Answer


Information in this article applies to:


QUESTION

How do I specify the code bank for source modules in my uVision project?

ANSWER

To set up code banking using the Keil uVision IDE:

  1. Under the 'Options' menu, select 'BL51 Code Banking Linker'.
  2. Select the 'Linking' tab.
  3. Under Target Options, check 'Code banking'.
  4. Select the 'Size/Location' tab.
  5. Enter the address range for the 'Bank Area'.

The bank number can be set for each source file in the project window.

  1. Under the 'project' menu, select 'Edit Project'.
  2. Select a file from the list of 'Source Files' (single-click the file name).
  3. At the bottom of the project window are several options for the selected source file, including 'Bank number'. Enter the bank number.

When you have set the bank numbers for all the source files, remember to click the 'Save' button before closing the project window.

MORE INFORMATION

Article last edited on: 2005-07-09 11:25:31

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