2 *****************************************************************************
4 ** File : stm32_flash_f74x.ld
6 ** Abstract : Linker script for STM32F74xVGTx Device with
7 ** 1024KByte FLASH, 320KByte RAM
9 *****************************************************************************
13 0x00000000 to 0x00003FFF 16K TCM RAM,
15 0x08000000 to 0x080FFFFF 1024K full flash,
16 0x08000000 to 0x08007FFF 32K isr vector, startup code,
17 0x08008000 to 0x0800FFFF 32K config, // FLASH_Sector_1
18 0x08010000 to 0x080FFFFF 960K firmware,
21 /* Specify the memory areas */
24 ITCM_RAM (rx) : ORIGIN = 0x00000000, LENGTH = 16K
26 /* Alternate access to the same flash storage as AXIM flash, but not writable by the boot loader. */
27 ITCM_FLASH (rx) : ORIGIN = 0x00200000, LENGTH = 32K
28 ITCM_FLASH_CONFIG (r) : ORIGIN = 0x00208000, LENGTH = 32K
29 ITCM_FLASH1 (rx) : ORIGIN = 0x00210000, LENGTH = 960K
31 AXIM_FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 32K
32 /* config occupies the entire flash sector 1 for the ease of erasure, 32K on F74x */
33 AXIM_FLASH_CONFIG (r) : ORIGIN = 0x08008000, LENGTH = 32K
34 AXIM_FLASH1 (rx) : ORIGIN = 0x08010000, LENGTH = 960K
36 DTCM_RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
37 SRAM1 (rwx) : ORIGIN = 0x20010000, LENGTH = 240K
38 SRAM2 (rwx) : ORIGIN = 0x2004C000, LENGTH = 16K
39 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
42 REGION_ALIAS("FLASH", ITCM_FLASH)
43 REGION_ALIAS("WRITABLE_FLASH", AXIM_FLASH)
44 REGION_ALIAS("FLASH_CONFIG", AXIM_FLASH_CONFIG)
45 REGION_ALIAS("FLASH1", ITCM_FLASH1)
46 REGION_ALIAS("WRITABLE_FLASH1", AXIM_FLASH1)
48 REGION_ALIAS("STACKRAM", DTCM_RAM)
49 REGION_ALIAS("FASTRAM", DTCM_RAM)
50 REGION_ALIAS("RAM", SRAM1)
52 /* Put various bits and bobs of data into the main chunk of flash as we have enough of it */
54 REGION_ALIAS("MOVABLE_FLASH", AXIM_FLASH1)
56 INCLUDE "stm32_flash_f7_split.ld"