Keil™, An ARM® Company

Technical Support

BL51: ACCESSING XDATA MEMORY AT NON-STANDARD ADDRESSES

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

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

Last Reviewed: Monday, October 16, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure