Trailing whitespace
[bertos.git] / bertos / cpu / cortex-m3 / scripts / sam3x8_ram.icf
1 /*-  SRAM0 memory region -*/
2 define symbol __region_RAM0_size__          = 0x10000 ;
3 define symbol __region_RAM0_start__         = 0x20000000 ;
4 define symbol __region_RAM0_end__           = __region_RAM0_start__+__region_RAM0_size__-1 ;
5
6 export symbol __region_RAM0_size__ ;
7 export symbol __region_RAM0_start__ ;
8 export symbol __region_RAM0_end__ ;
9
10 /*-  SRAM1 memory region -*/
11 define symbol __region_RAM1_size__          = 0x8000 ;
12 define symbol __region_RAM1_start__         = 0x20080000 ;
13 define symbol __region_RAM1_end__           = __region_RAM1_start__+__region_RAM1_size__-1 ;
14
15 export symbol __region_RAM1_size__ ;
16 export symbol __region_RAM1_start__ ;
17 export symbol __region_RAM1_end__ ;
18
19 /*- Continous SRAM region (SRAM0 is mirrored) -*/
20 define symbol __region_RAM_size__           = __region_RAM0_size__+__region_RAM1_size__ ;
21 define symbol __region_RAM_start__          = __region_RAM1_start__-__region_RAM0_size__ ;
22 define symbol __region_RAM_end__            = __region_RAM1_end__ ;
23
24 export symbol __region_RAM_size__ ;
25 export symbol __region_RAM_start__ ;
26 export symbol __region_RAM_end__ ;
27
28 /*- NFC SRAM region -*/
29 define symbol __region_NFC_RAM_start__      = 0x20100000 ;
30 define symbol __region_NFC_RAM_end__        = 0x20100FFF ;
31
32 export symbol __region_NFC_RAM_start__ ;
33 export symbol __region_NFC_RAM_end__ ;
34
35 /*-Vector table start*/
36 define symbol __vector_start__              = __region_RAM_start__ ;
37
38 /*-Sizes-*/
39 define symbol __size_cstack__               = 0x2000 ;
40 define symbol __size_heap__                 = 0x2000 ;
41
42 define memory mem with size                 = 4G ;
43 define region RAM_region                    = mem:[from __region_RAM_start__ to __region_RAM_end__];
44
45 define block CSTACK    with alignment = 8, size = __size_cstack__   { };
46 define block HEAP      with alignment = 8, size = __size_heap__     { };
47
48 initialize by copy with packing=none { readwrite };
49 do not initialize  { section .noinit };
50
51 place at address mem:__vector_start__ { readonly section .vectors };
52 place in RAM_region          { readonly, readwrite, block CSTACK, block HEAP };