]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / cmsis / TARGET_STM / TARGET_STM32F4 / TARGET_MTS_DRAGONFLY_F411RE / TOOLCHAIN_IAR / stm32f411xe.icf
1 /* [ROM = 512kb = 0x80000] */
2 define symbol __intvec_start__     = 0x08010000;
3 define symbol __region_ROM_start__ = 0x08010000;
4 define symbol __region_ROM_end__   = 0x0807FFFF;
5
6 /* [RAM = 128kb = 0x20000] Vector table dynamic copy: 102 vectors = 408 bytes (0x198) to be reserved in RAM */
7 define symbol __NVIC_start__          = 0x20000000;
8 define symbol __NVIC_end__            = 0x20000197; /* Aligned on 8 bytes */
9 define symbol __region_RAM_start__    = 0x20000198;
10 define symbol __region_RAM_end__      = 0x2001FFFF;
11
12 /* Memory regions */
13 define memory mem with size = 4G;
14 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
15 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
16
17 /* Stack and Heap */
18 /* Stack: 4kB - 408B for vector table */
19 /* Heap: 96kB */
20 define symbol __size_cstack__ = 0xe68;
21 define symbol __size_heap__   = 0x18000;
22 define block CSTACK    with alignment = 8, size = __size_cstack__   { };
23 define block HEAP      with alignment = 8, size = __size_heap__     { };
24 define block STACKHEAP with fixed order { block HEAP, block CSTACK };
25
26 initialize by copy with packing = zeros { readwrite };
27 do not initialize  { section .noinit };
28
29 place at address mem:__intvec_start__ { readonly section .intvec };
30
31 place in ROM_region   { readonly };
32 place in RAM_region   { readwrite, block STACKHEAP };