1/*###ICF### Section handled by ICF editor, don't touch! ****/
2/*-Editor annotation file-*/
3/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4/*-Specials-*/
5define symbol __ICFEDIT_intvec_start__ = 0x08000000;
6
7/*-Memory Regions-*/
8/***** FLASH *****/
9define symbol __ICFEDIT_region_ROM_start__    = 0x08000000;
10define symbol __ICFEDIT_region_ROM_end__      = 0x0803FFFF;
11/***** Non-backup SRAM1 *****/
12define symbol __ICFEDIT_region_RAM_start__    = 0x20000000;
13define symbol __ICFEDIT_region_RAM_end__      = 0x20007FFF;
14/***** Backup SRAM2 *****/
15define symbol __ICFEDIT_region_RAM2_start__   = 0x20008000;
16define symbol __ICFEDIT_region_RAM2_end__     = 0x2000FFFF;
17
18/*-Sizes-*/
19define symbol __ICFEDIT_size_cstack__ = 0x400;
20define symbol __ICFEDIT_size_heap__ = 0x000;
21/**** End of ICF editor section. ###ICF###*/
22
23
24define memory mem with size = 4G;
25define region ROM_region      = mem:[from __ICFEDIT_region_ROM_start__   to __ICFEDIT_region_ROM_end__];
26define region RAM_region      = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__];
27define region RAM2_region     = mem:[from __ICFEDIT_region_RAM2_start__  to __ICFEDIT_region_RAM2_end__];
28
29define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };
30define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };
31
32initialize by copy { readwrite };
33do not initialize  { section .noinit };
34
35place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
36
37place in ROM_region   { readonly };
38place in RAM_region   { readwrite,
39                        block CSTACK, block HEAP };
40place in RAM2_region  { };
41