Keil Logo

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
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.