ARM Technical Support Knowledge Articles

RESERVE MEMORY AT ABSOLUTE BANK ADDRESSES

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I am using the C51 Compiler and uVision with a code banking project. I have a 88KB CODE memory in the chip. The lower 32KB is assigned to the common area, and the rest is for the code banked area. I have 2 banks: one 32 kb and the other is 24 kb. Is there a way to tell compiler/linker that not all the banks are of the same size?

I need the compiler linker to enforce the size issue in order to know any violations in size.

ANSWER

Yes, you can block the memory usage in the linker as described below:

When using the LX51 Linker/Locater, just enter under Options - LX51 Locate - Reserve: B1:0xE000-B1:0xFFFF. This blocks the memory area 0xE000 - 0xFFFF from being used by other variables.

When using the BL51 Linker/Locater, the solution is a bit more complex. You can reserve the memory area 0xE000 - 0xFFFF in bank 1 with the following method:

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-08-17 19:58:43

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