Merge pull request #11670 from limonspb/osd_toupper_refactoring
[betaflight.git] / src / link / stm32_flash_f411_opbl.ld
bloba064478834ce49654bef22349f33b581046fe5a7
1 /*
2 *****************************************************************************
3 **
4 **  File        : stm32_flash_f411_opbl.ld
5 **
6 **  Abstract    : Linker script for STM32F411 Device with
7 **                512KByte FLASH, 128KByte RAM
8 **
9 *****************************************************************************
13 0x08000000 to 0x0807FFFF  512K full flash,
14 0x08000000 to 0x08003FFF   16K OPBL,
15 0x08004000 to 0x08007FFF   16K isr vector, startup code,
16 0x08008000 to 0x0800BFFF   16K config,                  // FLASH_Sector_2
17 0x0800C000 to 0x0807FFFF  464K firmware,
20 /* Specify the memory areas */
21 MEMORY
23     FLASH (rx)        : ORIGIN = 0x08004000, LENGTH = 16K
24     FLASH_CONFIG (r)  : ORIGIN = 0x08008000, LENGTH = 16K
25     FLASH1 (rx)       : ORIGIN = 0x0800C000, LENGTH = 464K
27     SYSTEM_MEMORY (rx): ORIGIN = 0x1FFF0000, LENGTH = 29K
29     RAM (rwx)         : ORIGIN = 0x20000000, LENGTH = 128K
30     MEMORY_B1 (rx)    : ORIGIN = 0x60000000, LENGTH = 0K
33 REGION_ALIAS("STACKRAM", RAM)
34 REGION_ALIAS("FASTRAM", RAM)
36 /* Put various bits and bobs of data into the free space after the vector table in sector 0 to save flash space. */
38 REGION_ALIAS("MOVABLE_FLASH", FLASH)
40 INCLUDE "stm32_flash_f4_split.ld"