2 *****************************************************************************
4 ** File : stm32_flash_f405.ld
6 ** Abstract : Linker script for STM32F405RG Device with
7 ** 1024KByte FLASH, 128KByte RAM 64KByte CCM (RAM)
9 *****************************************************************************
12 /* Stack & Heap sizes */
14 _Min_Stack_Size = 0x1800;
20 0x08000000 to 0x08100000 1024K full flash,
21 0x08000000 to 0x080DFFFF 896K firmware,
22 0x080E0000 to 0x08100000 128K config, // FLASH_Sector_11
25 /* Specify the memory areas */
28 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 896K
29 FLASH_CONFIG (r) : ORIGIN = 0x080E0000, LENGTH = 128K
31 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
32 CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
33 BACKUP_SRAM (rwx) : ORIGIN = 0x40024000, LENGTH = 4K
34 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
37 REGION_ALIAS("STACKRAM", CCM)
38 REGION_ALIAS("FASTRAM", CCM)
40 INCLUDE "stm32_flash.ld"