ARM Technical Support Knowledge Articles

ACCESSING XDATA MEMORY AT NON-STANDARD ADDRESSES

Applies to: BL51 Code-banking Linker/Locator

Answer

QUESTION

I have used a '138 to decode an 8K RAM at address 2000h to 3FFFh. What's the best way to address that memory? Should I use the _at_ keyword in the C compiler or should I use the linker?

ANSWER

Accessing this memory is best done using the linker. If you link your program with the following command line:

BL51 myprog.obj ... XDATA(2000h)

the linker will automatically locate your XDATA variables at 0x2000.

MORE INFORMATION

Article last edited on: 2006-10-16 10:41:13

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