stm32f1: Add support for building with a 0x7000 code offset

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-05-22 18:27:50 -04:00
parent edb679b83d
commit 2469356861
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,8 @@ choice
prompt "Bootloader offset" prompt "Bootloader offset"
config STM_FLASH_START_2000 config STM_FLASH_START_2000
bool "8KiB bootloader (stm32duino)" bool "8KiB bootloader (stm32duino)"
config STM_FLASH_START_7000
bool "28KiB bootloader"
config STM_FLASH_START_0000 config STM_FLASH_START_0000
bool "No bootloader" bool "No bootloader"
endchoice endchoice
@ -29,6 +31,7 @@ endchoice
config FLASH_START config FLASH_START
hex hex
default 0x2000 if STM_FLASH_START_2000 default 0x2000 if STM_FLASH_START_2000
default 0x7000 if STM_FLASH_START_7000
default 0x0000 default 0x0000
config USBSERIAL config USBSERIAL