2 *****************************************************************************
4 ** File : stm32_flash.ld
6 ** Abstract : Linker script for STM32F103CB Device with
7 ** 128KByte FLASH, 20KByte RAM
9 *****************************************************************************
12 /* Specify the memory areas. */
15 /* First 12K (0x3000 bytes) used for OP Bootloader, last 2K used for config storage */
16 FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 114K
17 FLASH_CONFIG (r) : ORIGIN = 0x0801F800, LENGTH = 2K
19 RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
20 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
23 REGION_ALIAS("STACKRAM", RAM)
24 REGION_ALIAS("FASTRAM", RAM)
26 INCLUDE "stm32_flash.ld"