]> begriffs open source - cmsis-freertos/blob - Demo/ARM7_STR75x_IAR/STR75x_FLASH.icf
Update README.md - branch main is now the base branch
[cmsis-freertos] / Demo / ARM7_STR75x_IAR / STR75x_FLASH.icf
1 /*###ICF### Section handled by ICF editor, don't touch! ****/
2 /*-Editor annotation file-*/
3 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
4 /*-Specials-*/
5 define symbol __ICFEDIT_intvec_start__ = 0x20000000;
6 /*-Memory Regions-*/
7 define symbol __ICFEDIT_region_ROM_start__ = 0x200006F4;
8 define symbol __ICFEDIT_region_ROM_end__   = 0x2003FFFF;
9 define symbol __ICFEDIT_region_RAM_start__ = 0x40000000;
10 define symbol __ICFEDIT_region_RAM_end__   = 0x40003FFF;
11 /*-Sizes-*/
12 define symbol __ICFEDIT_size_cstack__   = 0x400;
13 define symbol __ICFEDIT_size_svcstack__ = 0x200;
14 define symbol __ICFEDIT_size_irqstack__ = 0x200;
15 define symbol __ICFEDIT_size_fiqstack__ = 0x00;
16 define symbol __ICFEDIT_size_undstack__ = 0x00;
17 define symbol __ICFEDIT_size_abtstack__ = 0x00;
18 define symbol __ICFEDIT_size_heap__     = 0x4;
19 /**** End of ICF editor section. ###ICF###*/
20
21
22 define memory mem with size = 4G;
23 define region ROM_region   = mem:[from __ICFEDIT_region_ROM_start__   to __ICFEDIT_region_ROM_end__];
24 define region RAM_region   = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__];
25
26 define symbol __region_USB_PKG_RAM_start__  = 0xFFFFA000;
27 define symbol __region_USB_PKG_RAM_end__    = 0xFFFFA3FF;
28 define region USB_PKG_RAM_region = mem:[from __region_USB_PKG_RAM_start__ to __region_USB_PKG_RAM_end__];
29
30 define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };
31 define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
32 define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
33 define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
34 define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
35 define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
36 define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };
37
38 initialize by copy { readwrite };
39 do not initialize  { section .noinit };
40 do not initialize  { section USB_PACKET_MEMORY };
41
42 place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
43
44 place in ROM_region   { readonly };
45 place in RAM_region   { readwrite,
46                         block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
47                         block UND_STACK, block ABT_STACK, block HEAP };
48 place in USB_PKG_RAM_region
49                       { readwrite data section USB_PACKET_MEMORY  };