1 #! armclang -E --target=arm-arm-none-eabi -mcpu=cortex-a9 -xc
2 ;**************************************************
3 ; Copyright (c) 2017 ARM Ltd. All rights reserved.
4 ;**************************************************
6 ; Scatter-file for RTX Example on Versatile Express
8 ; This scatter-file places application code, data, stack and heap at suitable addresses in the memory map.
10 ; This platform has 2GB SDRAM starting at 0x80000000.
14 SDRAM __ROM_BASE __ROM_SIZE ; load region size_region
16 VECTORS __ROM_BASE __ROM_SIZE ; load address = execution address
18 * (RESET, +FIRST) ; Vector table and other startup code
19 * (InRoot$$Sections) ; All (library) code that must be in a root region
20 * (+RO-CODE) ; Application RO code (.text)
21 * (+RO-DATA) ; Application RO data (.constdata)
24 RW_DATA __RAM_BASE __RW_DATA_SIZE
25 { * (+RW) } ; Application RW data (.data)
28 __RW_DATA_SIZE) __ZI_DATA_SIZE
29 { * (+ZI) } ; Application ZI data (.bss)
31 ARM_LIB_HEAP (__RAM_BASE
33 +__ZI_DATA_SIZE) EMPTY __HEAP_SIZE ; Heap region growing up
36 ARM_LIB_STACK (__RAM_BASE
42 -__UND_STACK_SIZE) EMPTY -__STACK_SIZE ; Stack region growing down
50 -__ABT_STACK_SIZE) EMPTY -__UND_STACK_SIZE ; UND mode stack
57 -__SVC_STACK_SIZE) EMPTY -__ABT_STACK_SIZE ; ABT mode stack
63 -__IRQ_STACK_SIZE) EMPTY -__SVC_STACK_SIZE ; SVC mode stack
68 -__FIQ_STACK_SIZE) EMPTY -__IRQ_STACK_SIZE ; IRQ mode stack
72 +__RAM_SIZE) EMPTY -__FIQ_STACK_SIZE ; FIQ mode stack
75 TTB __TTB_BASE EMPTY __TTB_SIZE ; Level-1 Translation Table for MMU