-
Notifications
You must be signed in to change notification settings - Fork 0
/
memory_layout.ld
35 lines (27 loc) · 1.65 KB
/
memory_layout.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
/* Physical memories: */
/* FlashA (rx): ORIGIN = 0x1a000000, LENGTH = 0x80000 512K bytes */
/* FlashB (rx): ORIGIN = 0x1b000000, LENGTH = 0x80000 512K bytes */
/* Ram1 (rwx): ORIGIN = 0x10000000, LENGTH = 0x8000 32K bytes */
/* Ram2 (rwx): ORIGIN = 0x10080000, LENGTH = 0x8000 32K bytes */
/* Ram2Retain (rwx): ORIGIN = 0x10088000, LENGTH = 0x2000 8K bytes */
/*
/* RamAHB1 (rwx): ORIGIN = 0x20000000, LENGTH = 0xc000 48K bytes */
/* RamAHB2ETB (rwx): ORIGIN = 0x2000c000, LENGTH = 0x4000 16K bytes */
/* SDRAM (rwx): ORIGIN = 0x28000000, LENGTH = 0x2000000 4 Meg x 16 x 4 banks */
MEMORY
{
VirtTextM4 (rx): ORIGIN = 0x00000000, LENGTH = 0xA000 /* 40k -> Shadow Mem */
VirtTextM0 (rx): ORIGIN = 0x00000000, LENGTH = 0x8000 /* 32k -> Shadow Mem */
LoadTextM4 (rx): ORIGIN = 0x1A000000, LENGTH = 0xA000 /* 40k -> FlashA */
LoadTextM0 (rx): ORIGIN = 0x1B000000, LENGTH = 0x8000 /* 32k -> FlashB */
VirtDataM4 (rw): ORIGIN = 0x20008000, LENGTH = 0x8000 /* 32k -> RAM AHB */
VirtDataM0 (rw): ORIGIN = 0x20000000, LENGTH = 0x7000 /* 28k -> RAM AHB */
LoadDataM4 (rw): ORIGIN = 0x1A00A000, LENGTH = 0x8000 /* 32k -> FlashA */
LoadDataM0 (rw): ORIGIN = 0x1B00A000, LENGTH = 0x7000 /* 32k -> FlashB */
SharedData (rw): ORIGIN = 0x20007000, LENGTH = 0x1000 /* 4k -> RAM AHB */
SDRAM (rwx): ORIGIN = 0x28000000, LENGTH = 0x2000000 /* 32M */
}
/* CopyTextM4 (!rwx): ORIGIN = 0x10080000, LENGTH = 0xA000 40k -> SRAM 2 */
/* CopyTextM0 (!rwx): ORIGIN = 0x10000000, LENGTH = 0x8000 32k -> SRAM 1 */
__CopyTextM4 = 0x10080000;
__CopyTextM0 = 0x10000000;