Keil Logo

Standard Application Example

A typical non-code-banking application with the following memory map:

Memory
Area
Address
Range
Usage
On-Chip
RAM
I:0x00–I:0xFF Registers, bits, variables, stack, ...
External
RAM
X:0x0000–X:0xFFFF External variables.
External
RAM
X:0x000000–X:0x01FFFF Far variables.
ROM C:0x0000–C:0xFFFF Program code and constants.
ROM C:0x000000–C:0x0FFFFF Constants.

requires the following linker command line:

LX51 MYPROG.OBJ &
     CLASSES ( &
             HDATA  (X:0x000000 – X:0x01FFFF), &
             HCONST (C:0x000000 – C:0x0FFFFF) &
             )

Note

  • The address ranges for BIT, CODE, CONST, DATA, IDATA, and XDATA memory classes in the above linker command line are not required since the default settings cover the correct physical address ranges. 
  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.