1 //-----------------------------------------------------------------------------
\r
2 // ILINK command file template for the Renesas RX microcontroller R5F52318
\r
3 //-----------------------------------------------------------------------------
\r
4 define memory mem with size = 4G;
\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
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
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
22 define block STACKS with fixed order { block ISTACK,
\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
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
45 "DATAFLASH":place in DATA_FLASH_region
\r
46 { ro section .dataflash* };
\r