stm32: Add support for a bootloader on stm32f0

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-12-09 21:03:05 -05:00
parent c9cb462f90
commit 79e2376993
3 changed files with 36 additions and 2 deletions

View File

@@ -19,7 +19,9 @@ SECTIONS
{
.text : {
. = ALIGN(4);
_text_vectortable_start = .;
KEEP(*(.vector_table))
_text_vectortable_end = .;
*(.text .text.*)
*(.rodata .rodata*)
} > rom
@@ -27,6 +29,14 @@ SECTIONS
. = ALIGN(4);
_data_flash = .;
#if CONFIG_ARMCM_RAM_VECTORTABLE
.ram_vectortable (NOLOAD) : {
_ram_vectortable_start = .;
. = . + ( _text_vectortable_end - _text_vectortable_start ) ;
_ram_vectortable_end = .;
} > ram
#endif
.data : AT (_data_flash)
{
. = ALIGN(4);