blue-pill: copying linker script over

This commit is contained in:
2018-03-12 22:48:05 -07:00
parent 943e2bfa93
commit 5f5c4ac7ae
5 changed files with 36 additions and 28 deletions

View File

@@ -1,11 +1,18 @@
MEMORY
{
flash (rx) : ORIGIN = 0x00000000, LENGTH = 128K
flash (rx) : ORIGIN = 0x08000000, LENGTH = 64K
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
}
EXTERN(vectors);
ENTRY(reset_handler);
SECTIONS
{
.text : { *(.text*) } > flash
.bss : { *(.bss*) } > sram
.text : {
*(.vectors*)
*(.text*)
. = ALIGN(4);
} > flash
.bss : { *(.bss*) } > sram
}