iclite / mm32_sct

MM32 Scatter Files for Keil µVision at Link Phase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MM32_SCT

MM32 Scatter Files for Keil µVision at Link Phase (for armlink).

Scatter File

A scatter file contains one or more load regions. Each load region can contain one or more execution regions.

Arm Compiler 5

#!armcc -E

Arm Compiler for Embedded 6

#!armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m3 -xc

Description

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.

Usage

Project -> Options for 'XXXX' -> Linker -> Scatter File -> ... (File Picker) to open *.scat.

About

MM32 Scatter Files for Keil µVision at Link Phase.