blob: 7d7f26b552562c0e1f93477525d7e097cbf76c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
#! armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m55 -xc
/*--------------------- ROM Configuration ----------------------------------
; <h> ROM Configuration
; <o0> ROM Base Address <0x0-0xFFFFFFFF:8>
; <o1> ROM Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
*----------------------------------------------------------------------------*/
#define __ROM_BASE 0x70100400
#define __ROM_SIZE 0x001DFC00
/*--------------------- Embedded RAM Configuration ---------------------------
; <h> RAM Configuration
; <o0> RAM Base Address <0x0-0xFFFFFFFF:8>
; <o1> RAM Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
*----------------------------------------------------------------------------*/
#define __RAM_BASE 0x34000000
#define __RAM_SIZE 0x00100000
/*--------------------- Stack / Heap Configuration ---------------------------
; <h> Stack / Heap Configuration
; <o0> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
; <o1> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
*----------------------------------------------------------------------------*/
#define __STACK_SIZE 0x00000400
#define __HEAP_SIZE 0x00000800
/*
// <h> NOINIT Data Configuration
// <i> specify the size of the section which holds the uninitialized data
// <o0> NOINIT Size (in Bytes) <0x0-0xFFFFFFFF:32>
// </h>
*/
#define __NOINIT_SIZE 0x00000000
/*
// <h> CMSE Veneer Configuration
// <o0> CMSE Veneer Size (in Bytes) <0x0-0xFFFFFFFF:32>
// </h>
*/
#define __CMSEVENEER_SIZE 0x00002000
/*
// <<< end of configuration section >>>
*/
#define __STACKSEAL_SIZE ( 8 )
/*----------------------------------------------------------------------------
User Stack & Heap boundary definition
*----------------------------------------------------------------------------*/
#define __STACK_TOP ( __RAM_BASE + __RAM_SIZE - __STACKSEAL_SIZE ) /* starts at end of RAM - 8 byte stack seal */
#define __HEAP_BASE (AlignExpr(+0, 8)) /* starts after RW_RAM section, 8 byte aligned */
/*----------------------------------------------------------------------------
Scatter File Definitions definition
*----------------------------------------------------------------------------*/
#define __RO_BASE __ROM_BASE
#define __RO_SIZE __ROM_SIZE
#define __CV_BASE ( __ROM_BASE + __ROM_SIZE - __CMSEVENEER_SIZE )
#define __CV_SIZE ( __CMSEVENEER_SIZE )
#define __LR_BASE ( __ROM_BASE )
#define __LR_SIZE ( __ROM_SIZE - __CV_SIZE )
#define __RW_BASE __RAM_BASE
#define __RW_SIZE ( __RAM_SIZE - __STACK_SIZE - __HEAP_SIZE - __NOINIT_SIZE - __STACKSEAL_SIZE )
#define __ER_BASE __RW_BASE + __RW_SIZE
#define __ER_SIZE 0x10000
LR_IROM1 0x70100400 0x001DFC00 { ; load region size_region
ER_IROM1 0x70100400 0x001DFC00 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
.ANY (+XO)
}
RW_IRAM1 0x34000000 0x00100000 { ; RW data
.ANY (+RW +ZI)
}
RW_NONCACHEABLEBUFFER +0 ALIGN 0x4 { ; RW non-cacheable data
.ANY (.noncacheable_buffer)
}
#if __HEAP_SIZE > 0
ARM_LIB_HEAP __HEAP_BASE EMPTY __HEAP_SIZE { ; Reserve empty region for heap
}
#endif
ARM_LIB_STACK __STACK_TOP EMPTY -__STACK_SIZE { ; Reserve empty region for stack
}
}
|