-
Notifications
You must be signed in to change notification settings - Fork 0
/
fast-mem.ld
executable file
·63 lines (49 loc) · 1.93 KB
/
fast-mem.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
/*
* Memory Spaces Definitions.
*
* Need modifying for a specific board.
* FLASH.ORIGIN: starting address of flash
* FLASH.LENGTH: length of flash
* RAM.ORIGIN: 0x100
* RAM.LENGTH: length of SRAM1 - 0x100
* EXTMEMBx.ORIGIN: starting address of external memory block x
* EXTMEMBx.LENGTH: length of external memory block x
*
* The values below can be addressed in further linker scripts
* using functions like 'ORIGIN(RAM)' or 'LENGTH(RAM)'.
*/
MEMORY
{
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
BIT_BAND (rw) : ORIGIN = 0x22000000, LENGTH = 0x100 * 8 * 4
SRAM1 (xrw) : ORIGIN = 0x00000100, LENGTH = 112K - 0x100
/*
Начальные 256 байтов RAM резервируем для исключения
размещения данных по адресу 0.
Кроме того, в этой области могут разместиться 2048 битовых
переменных (см. DM00046982.pdf, PM0214 Programming Manual, pp.31-32)
*/
SRAM2 (xrw) : ORIGIN = 0x2001C000, LENGTH = 16K
SRAM3 (xrw) : ORIGIN = 0x20020000, LENGTH = 64K
BKPSRAM (rw) : ORIGIN = 0x40024000, LENGTH = 4K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2M
FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
/* NOR / PSRAM / SRAM */
EXTMEMB1 (rx) : ORIGIN = 0x60000000, LENGTH = 0
/* NAND Flash memory */
EXTMEMB2 (rx) : ORIGIN = 0x70000000, LENGTH = 0
EXTMEMB3 (rx) : ORIGIN = 0x80000000, LENGTH = 0
/* PC Card */
EXTMEMB4 (rx) : ORIGIN = 0x90000000, LENGTH = 0
/* SDRAM */
EXTMEMB5 (xrw) : ORIGIN = 0xC0000000, LENGTH = 0
EXTMEMB6 (xrw) : ORIGIN = 0xD0000000, LENGTH = 0
}
REGION_ALIAS( "EXTMEM", EXTMEMB5 );
REGION_ALIAS( "REGION_TEXT", FLASH );
REGION_ALIAS( "REGION_RODATA", FLASH );
REGION_ALIAS( "REGION_DATA", CCMRAM );
REGION_ALIAS( "REGION_BSS", CCMRAM );
REGION_ALIAS( "REGION_HEAP", CCMRAM );
REGION_ALIAS( "REGION_STACK", CCMRAM );
/* End of file fast-mem.ld */