Meaning
Linker configurations for complex memory environments allow for the separation of a single application image into multiple non-contiguous regions. Scatter-loading is the process of defining where different parts of the code reside during storage and where they move during active execution. This distinction is necessary for systems that boot from a slow flash chip but execute from high speed internal RAM.
Memory Description
Configuration files provide a detailed map that tells the linker exactly how to partition the binary file. Through scatter-loading, a developer can place sensitive security keys in a protected region while keeping the main application logic in a general-purpose area. This granular control over the binary layout supports the implementation of advanced security and power management features.
Loading Phase
System startup routines use the generated tables to copy initialized data and code from their permanent storage to their execution addresses. The instructions for scatter-loading are embedded in the image so that the bootloader knows exactly which bytes to move. This phase ensures that the software environment is correctly set up before the main function begins.
Size Reduction
Compression techniques can be applied to the stored segments to save space in the primary non-volatile memory. This approach allows a device to carry more features than its physical flash capacity would normally permit.