MM32 Scatter Files for Keil µVision at Link Phase (for armlink).
A scatter file contains one or more load regions. Each load region can contain one or more execution regions.
#!armcc -E
#!armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m3 -xc
The option -E
makes armclang only execute the preprocessor step. See -E
The mandatory option --target
specifies the target state, either AArch32 state, as shown in this example, or AArch64 state. aarch64-arm-none-eabi
or arm-arm-none-eabi
. aarch64-arm-none-eabi
, generates A64 instructions for AArch64
state. Implies -march=armv8-a
unless -mcpu
or -march
is specified. arm-arm-none-eabi
, generates A32/T32 instructions for AArch32
state. Must be used in conjunction with -march
(to target an architecture) or -mcpu
(to target a processor).
The option -mcpu
specifies a processor, Cortex-M3 in this example. Alternatively, you can use -march to specify an architecture. See -mcpu and -march
The option -x
specifies the source language. -xc
is c language. See -x
See Preprocessing a scatter file when linking with armlink.
Project
-> Options for 'XXXX'
-> Linker
-> Scatter File
-> ...
(File Picker) to open *.scat.