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 = 32K
29 FIRMWARE (rx) : ORIGIN = 0x08008000, LENGTH = 864K
30 FLASH_CONFIG (r) : ORIGIN = 0x080E0000, LENGTH = 128K
32 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
33 CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
34 BACKUP_SRAM (rwx) : ORIGIN = 0x40024000, LENGTH = 4K
35 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
38 REGION_ALIAS("STACKRAM", CCM)
39 REGION_ALIAS("FASTRAM", CCM)
41 __firmware_start = ORIGIN(FIRMWARE);
43 INCLUDE "stm32_flash.ld"