-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstm32f042k6.ld
More file actions
47 lines (41 loc) · 832 Bytes
/
stm32f042k6.ld
File metadata and controls
47 lines (41 loc) · 832 Bytes
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
MEMORY
{
flash (rx) : ORIGIN = 0x8000000, LENGTH = 32K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 6K
}
_eram = ORIGIN(ram) + LENGTH(ram);
_stack = _eram; /* Stack starts at end of RAM and grows downwards */
SECTIONS
{
.text : ALIGN(4)
{
KEEP(*(.ivt)) /* Interrupt vector table */
*(.text*)
. = ALIGN(4);
_etext = .;
} > flash
.init_array : ALIGN(4)
{
__init_array_start = .;
KEEP(*(.init_array*))
__init_array_end = .;
. = ALIGN(4);
} > flash
/* Initial (constant) values for data is placed in flash after the program code */
_idata = LOADADDR(.data);
.data : ALIGN(4)
{
_data = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} > ram AT > flash
.bss : ALIGN(4)
{
_bss = .;
*(.bss*)
. = ALIGN(4);
_ebss = .;
PROVIDE(_end = .);
} > ram
}