forked from taunusflieger/nucleo-h755-embassy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
memory.x
42 lines (39 loc) · 1.01 KB
/
memory.x
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
MEMORY
{
FLASH : ORIGIN = 0x08100000, LENGTH = 1M
RAM : ORIGIN = 0x30020000, LENGTH = 128K
AXISRAM : ORIGIN = 0x24000000, LENGTH = 512K
SRAM1 : ORIGIN = 0x30000000, LENGTH = 128K
SRAM2 : ORIGIN = 0x30020000, LENGTH = 128K
SRAM3 : ORIGIN = 0x30040000, LENGTH = 32K
SRAM4 : ORIGIN = 0x38000000, LENGTH = 64K
BSRAM : ORIGIN = 0x38800000, LENGTH = 4K
ITCM : ORIGIN = 0x00000000, LENGTH = 64K
}
SECTIONS {
.axisram (NOLOAD) : ALIGN(8) {
*(.axisram .axisram.*);
. = ALIGN(8);
} > AXISRAM
.sram1 (NOLOAD) : ALIGN(4) {
*(.sram1 .sram1.*);
. = ALIGN(4);
} > SRAM1
.sram2 (NOLOAD) : ALIGN(4) {
*(.sram2 .sram2.*);
. = ALIGN(4);
} > SRAM2
.sram3 (NOLOAD) : ALIGN(4) {
*(.sram3 .sram3.*);
. = ALIGN(4);
} > SRAM3
.shared (NOLOAD) : ALIGN(4) {
*(.sram4 .sram4.* .shared .shared.*);
. = ALIGN(4);
} > SRAM4
.bsram (NOLOAD) : ALIGN(4) {
*(.bsram .bsram.*);
. = ALIGN(4);
} > BSRAM
};
_stack_start = ORIGIN(SRAM2) + LENGTH(SRAM2);