]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/target/sama5d2/toolchain/iar/sram.icf
Add SAMA5D2 Xplained IAR demo.
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D2x_Xplained_IAR / AtmelFiles / target / sama5d2 / toolchain / iar / sram.icf
1 /*###ICF### Section handled by ICF editor, don't touch! ****/\r
2 /*-Editor annotation file-*/\r
3 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_1.xml" */\r
4 /*-Specials-*/\r
5 define symbol __ICFEDIT_intvec_start__ = 0x00000000;\r
6 /*-Memory Regions-*/\r
7 define symbol __ICFEDIT_region_IROM1_start__ = 0x0;\r
8 define symbol __ICFEDIT_region_IROM1_end__   = 0x0;\r
9 define symbol __ICFEDIT_region_IROM2_start__ = 0x0;\r
10 define symbol __ICFEDIT_region_IROM2_end__   = 0x0;\r
11 define symbol __ICFEDIT_region_EROM1_start__ = 0x0;\r
12 define symbol __ICFEDIT_region_EROM1_end__   = 0x0;\r
13 define symbol __ICFEDIT_region_EROM2_start__ = 0x0;\r
14 define symbol __ICFEDIT_region_EROM2_end__   = 0x0;\r
15 define symbol __ICFEDIT_region_EROM3_start__ = 0x0;\r
16 define symbol __ICFEDIT_region_EROM3_end__   = 0x0;\r
17 define symbol __ICFEDIT_region_IRAM1_start__ = 0x200000;\r
18 define symbol __ICFEDIT_region_IRAM1_end__   = 0x21FFFF;\r
19 define symbol __ICFEDIT_region_IRAM2_start__ = 0x0;\r
20 define symbol __ICFEDIT_region_IRAM2_end__   = 0x0;\r
21 define symbol __ICFEDIT_region_ERAM1_start__ = 0x20000000;\r
22 define symbol __ICFEDIT_region_ERAM1_end__   = 0x23FFFFFF;\r
23 define symbol __ICFEDIT_region_ERAM2_start__ = 0x24000000;\r
24 define symbol __ICFEDIT_region_ERAM2_end__   = 0x24FFFFFF;\r
25 define symbol __ICFEDIT_region_ERAM3_start__ = 0x0;\r
26 define symbol __ICFEDIT_region_ERAM3_end__   = 0x0;\r
27 /*-Sizes-*/\r
28 define symbol __ICFEDIT_size_intvec__   = 0x100;\r
29 define symbol __ICFEDIT_size_irqstack__ = 0x60;\r
30 define symbol __ICFEDIT_size_fiqstack__ = 0x60;\r
31 define symbol __ICFEDIT_size_abtstack__ = 0x40;\r
32 define symbol __ICFEDIT_size_undstack__ = 0x40;\r
33 define symbol __ICFEDIT_size_sysstack__ = 0x40;\r
34 define symbol __ICFEDIT_size_cstack__   = 0x3000;\r
35 define symbol __ICFEDIT_size_heap__     = 0x200;\r
36 /**** End of ICF editor section. ###ICF###*/\r
37 \r
38 define memory mem with size = 4G;\r
39 define region VEC_region = mem:[from __ICFEDIT_region_IRAM1_start__ size __ICFEDIT_size_intvec__];\r
40 define region RAM_region = mem:[from __ICFEDIT_region_IRAM1_start__+__ICFEDIT_size_intvec__ to __ICFEDIT_region_IRAM1_end__];\r
41 define region DDRAM_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__];\r
42 define region DDRAM_NOCACHE_region = mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__];\r
43 \r
44 define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };\r
45 define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };\r
46 define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };\r
47 define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };\r
48 define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };\r
49 define block SYS_STACK with alignment = 8, size = __ICFEDIT_size_sysstack__ { };\r
50 define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };\r
51 \r
52 initialize by copy with packing=none { readwrite };\r
53 do not initialize  { readonly section .noinit };\r
54 /* Warning: ICC still considers the sections below as zero-initialized, by default. */\r
55 do not initialize  { section .region_sram };\r
56 do not initialize  { section .region_ddr };\r
57 do not initialize  { section .region_ddr_nocache };\r
58 \r
59 place in VEC_region { section .vectors };\r
60 place in RAM_region { readonly };\r
61 place in RAM_region { section .cstartup };\r
62 place in RAM_region { readwrite, block IRQ_STACK, block FIQ_STACK, block ABT_STACK, block UND_STACK, block SYS_STACK, block CSTACK, block HEAP };\r
63 place in RAM_region { section .region_sram };\r
64 place in DDRAM_region { section .region_ddr };\r
65 place in DDRAM_NOCACHE_region { section .region_ddr_nocache };\r