-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstm32.ld
28 lines (22 loc) · 890 Bytes
/
stm32.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Linker script for STM32F10x
Copyright RAISONANCE 2007 (modified by Lanchon 1-Feb-2008)
You can use, copy and distribute this file freely, but without any waranty.
Configure memory sizes, end of stack and boot mode for your project here.
*/
/* include the common STM32F10x sub-script */
INCLUDE "STM32_COMMON.ld"
/* Memory Spaces Definitions */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K /* also change _estack below */
/*FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 126K
USERFLASH (rx) : ORIGIN = 0x801F800, LENGTH = 2K*/
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 62K
USERFLASH (rx) : ORIGIN = 0x801F800, LENGTH = 2
}
/* highest address of the user mode stack */
_estack = 0x20005000;
/* include the section management sub-script */
/* (either "STM32_SEC_FLASH.ld" or "STM32_SEC_RAM.ld") */
INCLUDE "STM32_SEC_FLASH.ld"