Keil™, An ARM® Company

RealView Linker and Utilities Guide

Images with a complex memory map

5.1.6. Images with a complex memory map

The scatter-loading description in Figure 5.3 loads the segments from the program1.o and program2.o files into memory corresponding to the map shown in Figure 5.4.

Unlike the simple memory map shown in Figure 5.2, this application cannot be specified to the linker using only the basic command-line options.

Caution

The scatter-loading description in Figure 5.3 specifies the location for code and data for program1.o and program2.o only. If you link an additional module, for example, program3.o, and use this description file, the location of the code and data for program3.o is not specified.

Unless you want to be very rigorous in the placement of code and data, it is advisable to use the * or .ANY specifier to place leftover code and data. See Placing regions at fixed addresses for more information.

Figure 5.3. Complex memory map in a scatter-loading description file

Figure 5.4. Complex scatter-loaded memory map

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A