Merge pull request #10445 from mikeller/revert-10388_in_maintenance_branch
[betaflight.git] / src / link / stm32_flash_f303_128k.ld
blob68c462e599bf62a78f9f0c9f839306595f59b460
1 /*
2 *****************************************************************************
3 **
4 **  File        : stm32_flash.ld
5 **
6 **  Abstract    : Linker script for STM32F30x Device with
7 **                128KByte FLASH and 40KByte RAM
8 **
9 *****************************************************************************
12 /* Specify the memory areas. */
13 MEMORY
15     FLASH (rx)        : ORIGIN = 0x08000000, LENGTH = 126K
16     FLASH_CONFIG (r)  : ORIGIN = 0x0801F800, LENGTH = 2K
18     RAM (xrw)         : ORIGIN = 0x20000000, LENGTH = 40K
19     CCM (xrw)         : ORIGIN = 0x10000000, LENGTH = 8K
20     MEMORY_B1 (rx)    : ORIGIN = 0x60000000, LENGTH = 0K
23 REGION_ALIAS("STACKRAM", CCM)
24 REGION_ALIAS("FASTRAM", CCM)
26 INCLUDE "stm32_flash.ld"