Debian Codegraph @

platforms_examples/armcc/LPC1833/FLASH.sct

raw
1 #! armcc -E
2 ; code upper need to use #define
3
4 ;-------------------------------------------------------------------------------------
5 ; Keil scatter loading file
6 ; For LPC1833
7 ;-------------------------------------------------------------------------------------
8
9 ; Internal SRAM0
10 #define SRAM0_START 0x10000000
11 #define SRAM0_END 0x10008000
12 #define SRAM0_SIZE (SRAM0_END-SRAM0_START)
13
14 ; Internal SRAM1
15 #define SRAM1_START 0x10080000
16 #define SRAM1_END 0x1008A000
17 #define SRAM1_SIZE (SRAM1_END-SRAM1_START)
18
19 ; Internal SRAM2
20 #define SRAM2_START 0x20000000
21 #define SRAM2_END 0x20010000
22 #define SRAM2_SIZE (SRAM2_END-SRAM2_START)
23
24 ; SDRAM
25 #define SDRAM_START 0x28000000
26
27 ; Internal FLASHA
28 #define FLASHA_START 0x1A000000
29 #define FLASHA_END 0x1A040000
30 #define FLASHA_SIZE (FLASHA_END-FLASHA_START)
31
32 ; Internal FLASHB
33 #define FLASHB_START 0x1B000000
34 #define FLASHB_END 0x1B040000
35 #define FLASHB_SIZE (FLASHB_END-FLASHB_START)
36
37 LR1 FLASHA_START FLASHA_SIZE {
38 ER1 FLASHA_START FLASHA_SIZE {
39 *(RESET, +FIRST)
40 *(InRoot$$Sections)
41 *.o (+RO)
42 }
43 ER2 SRAM0_START SRAM0_SIZE {
44 *.o (+RW +ZI)
45 }
46
47 ER4 (SRAM1_START) SRAM1_SIZE {
48 *(HEAP)
49 *(STACK)
50 }
51 }
52