mbed library sources for small microcontrollers such as STM32F050F6P6 (with 4 kB RAM)
Dependents: STM32F031_blink_LED_1
Fork of mbed-src by
targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/MK64F.icf@483:37da4976ca27, 2015-02-28 (annotated)
- Committer:
- mbed_official
- Date:
- Sat Feb 28 07:15:07 2015 +0000
- Revision:
- 483:37da4976ca27
- Parent:
- 420:8e6e2662709e
Synchronized with git revision 088b5c41a77dd90036d81cce1cfbfa017a7cad84
Full URL: https://github.com/mbedmicro/mbed/commit/088b5c41a77dd90036d81cce1cfbfa017a7cad84/
IAR support: Fixed stack and heap sizes for MTS DRAGONFLY and MTS MDOT F...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 377:95186f86029b | 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ |
mbed_official | 377:95186f86029b | 2 | /*-Editor annotation file-*/ |
mbed_official | 377:95186f86029b | 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ |
mbed_official | 377:95186f86029b | 4 | /*-Specials-*/ |
mbed_official | 377:95186f86029b | 5 | define symbol __ICFEDIT_intvec_start__ = 0x00000000; |
mbed_official | 377:95186f86029b | 6 | /*-Memory Regions-*/ |
mbed_official | 377:95186f86029b | 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; |
mbed_official | 377:95186f86029b | 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x000fffff; |
mbed_official | 420:8e6e2662709e | 9 | define symbol __ICFEDIT_region_NVIC_start__ = 0x1fff0000; |
mbed_official | 420:8e6e2662709e | 10 | define symbol __ICFEDIT_region_NVIC_end__ = 0x1fff0197; |
mbed_official | 420:8e6e2662709e | 11 | define symbol __ICFEDIT_region_RAM_start__ = 0x1fff0198; |
mbed_official | 377:95186f86029b | 12 | define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff; |
mbed_official | 377:95186f86029b | 13 | /*-Sizes-*/ |
mbed_official | 483:37da4976ca27 | 14 | /*Heap 1/4 of ram and stack 1/8*/ |
mbed_official | 483:37da4976ca27 | 15 | define symbol __ICFEDIT_size_cstack__ = 0x8000; |
mbed_official | 483:37da4976ca27 | 16 | define symbol __ICFEDIT_size_heap__ = 0x10000; |
mbed_official | 377:95186f86029b | 17 | /**** End of ICF editor section. ###ICF###*/ |
mbed_official | 377:95186f86029b | 18 | |
mbed_official | 377:95186f86029b | 19 | define symbol __region_RAM2_start__ = 0x20000000; |
mbed_official | 377:95186f86029b | 20 | define symbol __region_RAM2_end__ = 0x2002ffff; |
mbed_official | 377:95186f86029b | 21 | |
mbed_official | 377:95186f86029b | 22 | define symbol __FlashConfig_start__ = 0x00000400; |
mbed_official | 377:95186f86029b | 23 | define symbol __FlashConfig_end__ = 0x0000040f; |
mbed_official | 377:95186f86029b | 24 | |
mbed_official | 377:95186f86029b | 25 | define symbol __region_FlexRAM_start__ = 0x14000000; |
mbed_official | 377:95186f86029b | 26 | define symbol __region_FlexRAM_end__ = 0x14000fff; |
mbed_official | 377:95186f86029b | 27 | |
mbed_official | 377:95186f86029b | 28 | define memory mem with size = 4G; |
mbed_official | 377:95186f86029b | 29 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to (__FlashConfig_start__ - 1)] | mem:[from (__FlashConfig_end__+1) to __ICFEDIT_region_ROM_end__]; |
mbed_official | 377:95186f86029b | 30 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__]; |
mbed_official | 377:95186f86029b | 31 | define region FlexRAM_region = mem:[from __region_FlexRAM_start__ to __region_FlexRAM_end__]; |
mbed_official | 377:95186f86029b | 32 | |
mbed_official | 377:95186f86029b | 33 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; |
mbed_official | 377:95186f86029b | 34 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; |
mbed_official | 377:95186f86029b | 35 | |
mbed_official | 377:95186f86029b | 36 | define region FlashConfig_region = mem:[from __FlashConfig_start__ to __FlashConfig_end__]; |
mbed_official | 377:95186f86029b | 37 | |
mbed_official | 377:95186f86029b | 38 | initialize by copy { readwrite }; |
mbed_official | 377:95186f86029b | 39 | do not initialize { section .noinit }; |
mbed_official | 377:95186f86029b | 40 | |
mbed_official | 377:95186f86029b | 41 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; |
mbed_official | 377:95186f86029b | 42 | |
mbed_official | 377:95186f86029b | 43 | place in FlashConfig_region {section FlashConfig}; |
mbed_official | 377:95186f86029b | 44 | |
mbed_official | 377:95186f86029b | 45 | place in ROM_region { readonly }; |
mbed_official | 377:95186f86029b | 46 | |
mbed_official | 420:8e6e2662709e | 47 | place in RAM_region { readwrite, block HEAP, block CSTACK }; |
mbed_official | 377:95186f86029b | 48 | |
mbed_official | 377:95186f86029b | 49 | place in FlexRAM_region { section .flex_ram }; |