Debian Codegraph @

platforms_examples/armcc/AT91SAM7A3/ROM.sct

raw
1 #! armcc -E
2 ; code upper need to use #define
3
4 ;-------------------------------------------------------------------------------------
5 ; Keil scatter loading file
6 ; For AT91SAM7A3
7 ;-------------------------------------------------------------------------------------
8
9 #define FLASH_START (0x00100000)
10 #define FLASH_END (0x00140000)
11 #define FLASH_SIZE (FLASH_END-FLASH_START)
12
13 ; Internal SRAM
14 #define RAM_START 0x00200000
15 #define RAM_END 0x00208000
16 #define RAM_SIZE (RAM_END-RAM_START)
17
18 ; Load region for main program
19 LR1 FLASH_START FLASH_SIZE {
20 ER2 FLASH_START {
21 *.o(.reset, +First)
22 *.o(InRoot$$Sections)
23 *.o(+RO)
24 }
25 ER5 RAM_START RAM_SIZE {
26 *.o(+RW +ZI)
27 *.o(STACK)
28 }
29 }
30
31
32
33 /*----------------------------------------------------------------------------*/
34