5.1.1 What you can control with a scatter file
A scatter file gives you the ability to control where the linker places different parts of your image for your particular target.
You can control:
- The location and size of various memory regions that are mapped to ROM, RAM,
- The location of individual functions and variables, and code from the ARM®
standard C and C++ libraries.
- The placement of sections that contain individual functions or variables, or
code from the ARM standard C and C++
- The priority ordering of memory areas for placing unassigned sections, to
ensure that they get filled in a particular order.
- The location and size of empty regions of memory, such as memory to use for stack and
If the location of some code or data lies outside all the regions that are
specified in your scatter file, the linker attempts to create a load and execution
region to contain that code or data.
Note: Multiple code and data sections cannot occupy the same area of memory, unless you
place them in separate overlay regions.