Squashed 'stm32f103c8t6-bootloader/' content from commit b193a72

git-subtree-dir: stm32f103c8t6-bootloader
git-subtree-split: b193a72ea70c26576ec0cec4a55d540eefe53bd0
This commit is contained in:
fruchti 2021-04-04 19:50:04 +02:00
commit e067fcbe30
34 changed files with 15445 additions and 0 deletions

50
ld/common.ld Normal file
View file

@ -0,0 +1,50 @@
/*
* Unified Cortex Startup - GNU ld linker script file
*
* This file is in public domain
*
* Put together by Paul Sokolovsky based on article by Vanya Sergeev
* http://dev.frozeneskimo.com/notes/cortex_cmsis/ , GNU ld documentation
* and numerous other public resources.
*
*/
ENTRY(Reset_Handler)
SECTIONS {
.text :
{
KEEP(*(.vectors))
KEEP(*(.cortex_vectors))
KEEP(*(.vendor_vectors))
*(.text*)
*(.rodata*)
_end_text = .;
} >flash
_start_init_data = LOADADDR(.data);
.data :
{
_start_data = .;
*(.data*)
_end_data = .;
} >sram AT >flash
.bss :
{
_start_bss = .;
*(.bss*)
*(COMMON)
_end_bss = .;
} >sram
. = ALIGN(4);
_start_stack = .;
PROVIDE(_end_stack = ORIGIN(sram) + LENGTH(sram));
}
_end = .;

View file

@ -0,0 +1,7 @@
MEMORY
{
flash (rx) : ORIGIN = 0x08000000, LENGTH = 64K
sram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
}
INCLUDE ld/common.ld