-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemory.x
55 lines (44 loc) · 931 Bytes
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
EXTERN(ExceptionsJump)
ENTRY(_start)
MEMORY {
BOOT : ORIGIN = 0x0, LENGTH = 1M /* Not actual memory, ROM, FLASH or SRAM are mapped to it */
ROM : ORIGIN = 0x00100000, LENGTH = 1M
SRAM : ORIGIN = 0x00200000, LENGTH = 1M
FLASH : ORIGIN = 0x10000000, LENGTH = 16M
SDRAM : ORIGIN = 0X20000000, LENGTH = 64M
}
SECTIONS
{
.vector_table :
{
*(.ExceptionsJump);
} > SRAM
.text : {
*(.text*);
_end_text = .;
} > SDRAM
.data : {
*(.data*);
_end_data = .;
} > SDRAM
.rodata : {
*(.rodata*);
_end_rodata = .;
} > SDRAM
.bss : {
*(.bss*);
_end_bss = .;
} > SDRAM
ASSERT(
(_end_bss < 0X21000000),
"kernel program data overflows custom code entry")
/DISCARD/ :
{
/* Unused exception related info that only wastes space */
*(.ARM.exidx);
*(.ARM.exidx.*);
*(.ARM.extab.*);
*(.ARM.attributes*);
*(.debug*);
}
}