Repository navigation
Expand file tree
/
Copy pathFLASH.ld
More file actions
87 lines (77 loc) · 1.47 KB
/
Copy pathFLASH.ld
File metadata and controls
87 lines (77 loc) · 1.47 KB
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
/* ...... */
/* Memories definition */
// Change memory definitions
MEMORY
{
RAM (xrw) : ORIGIN = 0x30000000, LENGTH = 256K
SRAM4 (xrw) : ORIGIN = 0x38000000, LENGTH = 16K
FLASH (rx) : ORIGIN = 0x0C000000, LENGTH = 760K
FLASH_CKP (rw) : ORIGIN = 0x0C0BE000, LENGTH = 256K
FLASH_NSC (rx) : ORIGIN = 0x0C0FE000, LENGTH = 8K
}
/* Sections */
// Either modify or add sections as follows, do not remove any.
// Sections listed in comments must be kept the same
SECTIONS
{
/*
.isr_vector
.text
.rodata
.ARM.extab
.ARM
.preinit_array
.init_array
.fini_array
*/
/* ... */
.data :
{
_sdata = .;
./Drivers*(.data)
./Drivers*(.data*)
*(.data.driver)
_sdata_conf = .;
. = . + (_sdata_conf - _sdata);
*(.data.confidential)
_edata_conf = .;
*(.data)
*(.data*)
*(.RamFunc)
*(.RamFunc*)
_edata = .;
} >RAM AT> FLASH
/* .gnu.sgstubs */
.bss :
{
_sbss = .;
__bss_start__ = _sbss;
./Drivers*(.bss)
./Drivers*(.bss*)
*(.bss.driver)
_sbss_conf = .;
. = . + (_sbss_conf - _sbss);
*(.bss.confidential)
_ebss_conf = .;
*(.bss)
*(.bss*)
*(COMMON)
_ebss = .;
__bss_end__ = _ebss;
} >RAM
.crypobuf :
{
. = ALIGN(4);
_scryptobuf = .;
. = . + (_edata_conf - _sdata_conf);
_ecryptobuf_data = .;
. = . + (_ebss_conf - _sbss_conf);
. = ALIGN(4);
_ecryptobuf = .;
} >RAM
/*
._user_heap_stack
DISCARD
.ARM.attributes 0
*/
}