]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RX200_RX231-RSK_GCC_e2studio_IAR/src/IAR_Support/lnkr5f52318.icf
Check in RX231 IAR demo.
[freertos] / FreeRTOS / Demo / RX200_RX231-RSK_GCC_e2studio_IAR / src / IAR_Support / lnkr5f52318.icf
1 //-----------------------------------------------------------------------------\r
2 // ILINK command file template for the Renesas RX microcontroller R5F52318\r
3 //-----------------------------------------------------------------------------\r
4 define memory mem with size = 4G;\r
5 \r
6 define region ROM_region16 = mem:[from 0xFFFF8000 to 0xFFFFFFFF];\r
7 define region RAM_region16 = mem:[from 0x00000004 to 0x00007FFF];\r
8 define region ROM_region24 = mem:[from 0xFFF80000 to 0xFFFFFFFF];\r
9 define region RAM_region24 = mem:[from 0x00000004 to 0x0000FFFF];\r
10 define region ROM_region32 = mem:[from 0xFFF80000 to 0xFFFFFFFF];\r
11 define region RAM_region32 = mem:[from 0x00000004 to 0x0000FFFF];\r
12 define region DATA_FLASH_region = mem:[from 0x00100000 to 0x00101FFF];\r
13 \r
14 initialize by copy { rw, ro section D, ro section D_1, ro section D_2 };\r
15 initialize by copy with packing = none { section __DLIB_PERTHREAD };\r
16 do not initialize  { section .*.noinit };\r
17 \r
18 define block HEAP     with alignment = 4, size = _HEAP_SIZE { };\r
19 define block USTACK   with alignment = 4, size = _USTACK_SIZE { };\r
20 define block ISTACK   with alignment = 4, size = _ISTACK_SIZE { };\r
21 \r
22 define block STACKS with fixed order { block ISTACK,\r
23                                        block USTACK };\r
24 \r
25 \r
26 place at address mem:0x00120040 { ro section .option_rom };\r
27 place at address mem:0xFFFFFF80 { ro section .exceptvect };\r
28 place at address mem:0xFFFFFFFC { ro section .resetvect };\r
29 \r
30 "ROM16":place in ROM_region16        { ro section .code16*,\r
31                                        ro section .data16* };\r
32 "RAM16":place in RAM_region16        { rw section .data16*,\r
33                                        rw section __DLIB_PERTHREAD };\r
34 "ROM24":place in ROM_region24        { ro section .code24*,\r
35                                        ro section .data24* };\r
36 "RAM24":place in RAM_region24        { rw section .data24* };\r
37 "ROM32":place in ROM_region32        { ro };\r
38 "RAM32":place in RAM_region32        { rw,\r
39                                        ro section D,\r
40                                        ro section D_1,\r
41                                        ro section D_2,\r
42                                        block HEAP,\r
43                                        block STACKS };\r
44 \r
45 "DATAFLASH":place in DATA_FLASH_region\r
46                                      { ro section .dataflash* };\r
47 \r