BL51 User's Guide

Standard Application Example

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

Memory
Area
Address
Range
Usage
On-Chip RAMD:0x00–D:0x7FRegisters, bits, variables, stack, and so on.
CODEC:0x0000–C:0x7FFFProgram code and constants.
XDATAX:0x0000–X:0x7FFF
X:0xF800–X:0xFFFF
Variables too large for on-chip RAM.

requires the following linker command line:

BL51 PROG.OBJ &
     RAMSIZE(128) &
     CODE(0x0000-0x7FFF) &
     XDATA(0x0000-0x7FFF, 0xF800-0xFFFF)