-
Notifications
You must be signed in to change notification settings - Fork 0
/
stm32f411ce.ld
76 lines (63 loc) · 1.63 KB
/
stm32f411ce.ld
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
/* memory regions */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
}
ENTRY(reset_handler)
_mstack_size = 0x80; /* main stack size used by exceptions and interrupts */
_mstack = 0x20020000; /* main stack top */
_rstack_size = 0x80; /* size of return stack */
_rstack = 0x2001FF80; /* growing down */
_tib = 0x2001FEB0; /* transaction input buffer */
_tib_size = 0x50 ; /* tib buffer size */
_dstack_size = 0x80; /* size of data stack */
_dstack = 0x2001FEB0; /* growing down */
_vid_buffer = 0x20018130; /* video buffer */
_vid_buffer_size = 0x7d00 ; /* vide buffer size */
SECTIONS
{
/* The startup code goes first into FLASH */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
/* The program code and other data goes into FLASH */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
. = ALIGN(4);
.rodata :
{
. = ALIGN(4) ;
KEEP(*(.data))
_sdata = . ;
__data_start = _sdata ;
*(.data) /* Data memory */
. = ALIGN(4) ;
_edata = . ;
_data_size = _edata - _sdata ;
} >FLASH
. = ALIGN(10);
.user :
{
KEEP(*(.user))
} > FLASH
.bss :
{
. = ALIGN(4) ;
_sbss = . ;
__bss_start__ = _sbss;
*(.bss) /* Zero-filled run time allocate data memory */
. = ALIGN(4) ;
_ebss = . ;
_bss_size = _ebss - _sbss ;
} >RAM
}