2 *****************************************************************************
4 ** File : stm32_flash.ld
6 ** Abstract : Linker script for STM32F427 Device with
7 ** 2048 KByte FLASH, 192KByte RAM
9 ** Set heap size, stack size and stack location according
10 ** to application requirements.
12 ** Set memory bank area and size if external memory is used.
14 ** Target : STMicroelectronics STM32
16 ** Environment : Atollic TrueSTUDIO(R)
18 ** Distribution: The file is distributed as is, without any warranty
21 ** (c)Copyright Atollic AB.
22 ** You may use this file as-is or modify it according to the needs of your
23 ** project. Distribution of this file (unmodified or modified) is not
24 ** permitted. Atollic AB permit registered Atollic TrueSTUDIO(R) users the
25 ** rights to distribute the assembled, compiled & linked contents of this
26 ** file as part of an application binary file, provided that it is built
27 ** using the Atollic TrueSTUDIO(R) toolchain.
29 *****************************************************************************
32 /* Stack & Heap sizes */
34 _Min_Stack_Size = 0x1800;
40 0x08000000 to 0x08100000 1024K full flash,
41 0x08000000 to 0x080DFFFF 896K firmware,
42 0x080E0000 to 0x08100000 128K config, // FLASH_Sector_11
45 /* Specify the memory areas */
48 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 896K
49 FLASH_CONFIG (r) : ORIGIN = 0x080E0000, LENGTH = 128K
51 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
52 CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
53 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
56 REGION_ALIAS("STACKRAM", CCM)
57 REGION_ALIAS("FASTRAM", CCM)
59 INCLUDE "stm32_flash.ld"