2 *****************************************************************************
4 ** File : stm32_flash_f722.ld
6 ** Abstract : Linker script for STM32F722RETx Device with
7 ** 512KByte FLASH, 256KByte RAM
9 *****************************************************************************
16 0x08000000 to 0x0807FFFF 512K full flash
17 0x08000000 to 0x08003FFF 16K KISS bootloader
18 0x08004000 to 0x08007FFF 16K config
19 0x08008000 to 0x0807FFFF 480K ISR vector, firmware
22 /* Specify the memory areas */
25 ITCM_RAM (rx) : ORIGIN = 0x00000000, LENGTH = 16K
27 /* config occupies the entire flash sector 1 for the ease of erasure, 16K on F72x */
28 ITCM_FLASH_CONFIG (r) : ORIGIN = 0x00204000, LENGTH = 16K
29 ITCM_FLASH (rx) : ORIGIN = 0x00208000, LENGTH = 480K
31 AXIM_FLASH_CONFIG (r) : ORIGIN = 0x08004000, LENGTH = 16K
32 AXIM_FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 480K
34 DTCM_RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
35 SRAM1 (rwx) : ORIGIN = 0x20010000, LENGTH = 176K
36 SRAM2 (rwx) : ORIGIN = 0x2003C000, LENGTH = 16K
37 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
40 REGION_ALIAS("FLASH", AXIM_FLASH)
41 REGION_ALIAS("WRITABLE_FLASH", AXIM_FLASH)
42 REGION_ALIAS("FLASH_CONFIG", AXIM_FLASH_CONFIG)
43 REGION_ALIAS("FLASH1", AXIM_FLASH)
44 REGION_ALIAS("WRITABLE_FLASH1", AXIM_FLASH)
46 REGION_ALIAS("STACKRAM", DTCM_RAM)
47 REGION_ALIAS("FASTRAM", DTCM_RAM)
48 REGION_ALIAS("RAM", SRAM1)
50 /* Put various bits and bobs of data into the free space after the vector table in sector 0 to save flash space. */
52 REGION_ALIAS("MOVABLE_FLASH", AXIM_FLASH)
54 INCLUDE "stm32_flash_f7_split.ld"