2 *****************************************************************************
4 ** File : stm32_flash_f405.ld
6 ** Abstract : Linker script for STM32F405RG Device with
7 ** 1024KByte FLASH, 128KByte RAM 64KByte CCM (RAM)
9 *****************************************************************************
13 0x08000000 to 0x080FFFFF 1024K full flash,
14 0x08000000 to 0x08003FFF 16K isr vector, startup code,
15 0x08004000 to 0x08007FFF 16K config, // FLASH_Sector_1
16 0x08008000 to 0x080FFFFF 992K firmware,
19 /* Specify the memory areas */
22 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K
23 FLASH_CONFIG (r) : ORIGIN = 0x08004000, LENGTH = 16K
24 FLASH1 (rx) : ORIGIN = 0x08008000, LENGTH = 992K
26 SYSTEM_MEMORY (rx): ORIGIN = 0x1FFF0000, LENGTH = 29K
28 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
29 CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
30 BACKUP_SRAM (rwx) : ORIGIN = 0x40024000, LENGTH = 4K
31 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
34 REGION_ALIAS("STACKRAM", CCM)
35 REGION_ALIAS("FASTRAM", CCM)
36 REGION_ALIAS("VECTAB", RAM)
38 /* Put various bits and bobs of data into the main chunk of flash as we have enough of it */
40 REGION_ALIAS("MOVABLE_FLASH", FLASH1)
42 INCLUDE "stm32_flash_f4_split.ld"