File: FLASH.sct

package info (click to toggle)
cpputest 4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,688 kB
  • sloc: cpp: 31,212; sh: 4,978; ansic: 1,360; makefile: 775; ruby: 676; xml: 8; sed: 1
file content (52 lines) | stat: -rw-r--r-- 1,183 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! armcc -E
; code upper need to use #define 

;-------------------------------------------------------------------------------------
;   Keil scatter loading file
; For LPC1833
;-------------------------------------------------------------------------------------

; Internal SRAM0
#define SRAM0_START 0x10000000
#define SRAM0_END   0x10008000
#define SRAM0_SIZE  (SRAM0_END-SRAM0_START)

; Internal SRAM1
#define SRAM1_START 0x10080000
#define SRAM1_END   0x1008A000
#define SRAM1_SIZE  (SRAM1_END-SRAM1_START)

; Internal SRAM2
#define SRAM2_START 0x20000000
#define SRAM2_END   0x20010000
#define SRAM2_SIZE  (SRAM2_END-SRAM2_START)

; SDRAM
#define SDRAM_START 0x28000000

; Internal FLASHA
#define FLASHA_START 0x1A000000
#define FLASHA_END   0x1A040000
#define FLASHA_SIZE  (FLASHA_END-FLASHA_START)

; Internal FLASHB
#define FLASHB_START 0x1B000000
#define FLASHB_END   0x1B040000
#define FLASHB_SIZE  (FLASHB_END-FLASHB_START)

LR1 FLASHA_START FLASHA_SIZE {
  ER1 FLASHA_START FLASHA_SIZE {
    *(RESET, +FIRST)
   *(InRoot$$Sections)
    *.o (+RO)
  }
  ER2 SRAM0_START SRAM0_SIZE {
    *.o (+RW +ZI)
  }

  ER4 (SRAM1_START) SRAM1_SIZE {
    *(HEAP)
    *(STACK)
  }
}