File: ROM.sct

package info (click to toggle)
cpputest 4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,632 kB
  • sloc: cpp: 31,212; sh: 4,978; ansic: 1,360; makefile: 777; ruby: 676; xml: 8; sed: 1
file content (34 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (4)
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
#! armcc -E
; code upper need to use #define 

;-------------------------------------------------------------------------------------
;   Keil scatter loading file
; For AT91SAM7A3
;-------------------------------------------------------------------------------------

#define FLASH_START (0x00100000)
#define FLASH_END   (0x00140000)
#define FLASH_SIZE  (FLASH_END-FLASH_START)

; Internal SRAM
#define RAM_START 0x00200000
#define RAM_END   0x00208000
#define RAM_SIZE  (RAM_END-RAM_START)

; Load region for main program
LR1   FLASH_START  FLASH_SIZE {
   ER2 FLASH_START {
        *.o(.reset, +First)
        *.o(InRoot$$Sections)
        *.o(+RO)
   }
   ER5 RAM_START RAM_SIZE {
    *.o(+RW +ZI)
    *.o(STACK)
   }
}



/*----------------------------------------------------------------------------*/