|
| 1 | +/*###ICF### Section handled by ICF editor, don't touch! ****/ |
| 2 | +/*-Editor annotation file-*/ |
| 3 | +/* IcfEditorFile="$TOOLKIT_DIR$\config\linker\ST\IcfEditor\stm32f40x_fsmc.xml" */ |
| 4 | +/*-Specials-*/ |
| 5 | +define symbol __ICFEDIT_intvec_start__ = 0x08020100; |
| 6 | +/*-Memory Regions-*/ |
| 7 | +define symbol __ICFEDIT_region_FLASH_start__ = 0x08020100; |
| 8 | +define symbol __ICFEDIT_region_FLASH_end__ = 0x0803FFFF; |
| 9 | +define symbol __ICFEDIT_region_FSMC11_start__ = 0x0; |
| 10 | +define symbol __ICFEDIT_region_FSMC11_end__ = 0x0; |
| 11 | +define symbol __ICFEDIT_region_FSMC12_start__ = 0x0; |
| 12 | +define symbol __ICFEDIT_region_FSMC12_end__ = 0x0; |
| 13 | +define symbol __ICFEDIT_region_FSMC13_start__ = 0x0; |
| 14 | +define symbol __ICFEDIT_region_FSMC13_end__ = 0x0; |
| 15 | +define symbol __ICFEDIT_region_FSMC14_start__ = 0x0; |
| 16 | +define symbol __ICFEDIT_region_FSMC14_end__ = 0x0; |
| 17 | +define symbol __ICFEDIT_region_NAND1_start__ = 0x0; |
| 18 | +define symbol __ICFEDIT_region_NAND1_end__ = 0x0; |
| 19 | +define symbol __ICFEDIT_region_NAND2_start__ = 0x0; |
| 20 | +define symbol __ICFEDIT_region_NAND2_end__ = 0x0; |
| 21 | +define symbol __ICFEDIT_region_PCARD_start__ = 0x0; |
| 22 | +define symbol __ICFEDIT_region_PCARD_end__ = 0x0; |
| 23 | +define symbol __ICFEDIT_region_CCRAM_start__ = 0x10000000; |
| 24 | +define symbol __ICFEDIT_region_CCRAM_end__ = 0x1000FFFF; |
| 25 | +define symbol __ICFEDIT_region_SRAM1_start__ = 0x20000000; |
| 26 | +define symbol __ICFEDIT_region_SRAM1_end__ = 0x2001BFFF; |
| 27 | +define symbol __ICFEDIT_region_SRAM2_start__ = 0x2001C000; |
| 28 | +define symbol __ICFEDIT_region_SRAM2_end__ = 0x2001FFFF; |
| 29 | +define symbol __ICFEDIT_region_BKPR_start__ = 0x40024000; |
| 30 | +define symbol __ICFEDIT_region_BKPR_end__ = 0x40024FFF; |
| 31 | +/*-Sizes-*/ |
| 32 | +define symbol __ICFEDIT_size_cstack__ = 0x2000; |
| 33 | +define symbol __ICFEDIT_size_heap__ = 0x2000; |
| 34 | +/**** End of ICF editor section. ###ICF###*/ |
| 35 | + |
| 36 | +define memory mem with size = 4G; |
| 37 | +define region FLASH_region = mem:[from __ICFEDIT_region_FLASH_start__ to __ICFEDIT_region_FLASH_end__ ]; |
| 38 | +define region FSMC_region = mem:[from __ICFEDIT_region_FSMC11_start__ to __ICFEDIT_region_FSMC11_end__] |
| 39 | + | mem:[from __ICFEDIT_region_FSMC12_start__ to __ICFEDIT_region_FSMC12_end__] |
| 40 | + | mem:[from __ICFEDIT_region_FSMC13_start__ to __ICFEDIT_region_FSMC13_end__] |
| 41 | + | mem:[from __ICFEDIT_region_FSMC14_start__ to __ICFEDIT_region_FSMC14_end__]; |
| 42 | +define region NAND_region = mem:[from __ICFEDIT_region_NAND1_start__ to __ICFEDIT_region_NAND1_end__ ] |
| 43 | + | mem:[from __ICFEDIT_region_NAND2_start__ to __ICFEDIT_region_NAND2_end__ ]; |
| 44 | +define region PCARD_region = mem:[from __ICFEDIT_region_PCARD_start__ to __ICFEDIT_region_PCARD_end__ ]; |
| 45 | +define region CCRAM_region = mem:[from __ICFEDIT_region_CCRAM_start__ to __ICFEDIT_region_CCRAM_end__ ]; |
| 46 | +define region SRAM_region = mem:[from __ICFEDIT_region_SRAM1_start__ to __ICFEDIT_region_SRAM1_end__ ] |
| 47 | + | mem:[from __ICFEDIT_region_SRAM2_start__ to __ICFEDIT_region_SRAM2_end__ ]; |
| 48 | +define region BKPR_region = mem:[from __ICFEDIT_region_BKPR_start__ to __ICFEDIT_region_BKPR_end__ ]; |
| 49 | + |
| 50 | +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; |
| 51 | +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; |
| 52 | + |
| 53 | +initialize by copy { readwrite }; |
| 54 | +//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application |
| 55 | + |
| 56 | +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; |
| 57 | + |
| 58 | +place in FLASH_region { readonly }; |
| 59 | +place in PCARD_region { readonly section application_specific_ro }; |
| 60 | +place in CCRAM_region { section .ccram }; |
| 61 | +place in SRAM_region { readwrite, block CSTACK, block HEAP }; |
| 62 | +place in BKPR_region { section .backup_sram }; |
0 commit comments