stm32: Support for 20KiB bootloader offset. (#3008)

Signed-off-by: Kianusch Sayah Karadji <kianusch@gmail.com>
This commit is contained in:
kianusch 2020-06-20 19:30:10 +02:00 committed by GitHub
parent 755064177b
commit a4c31bafb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,8 @@ choice
bool "8KiB bootloader (stm32duino)" if MACH_STM32F103 || MACH_STM32F070 bool "8KiB bootloader (stm32duino)" if MACH_STM32F103 || MACH_STM32F070
config STM32_FLASH_START_4000 config STM32_FLASH_START_4000
bool "16KiB bootloader (HID Bootloader)" if MACH_STM32F405 || MACH_STM32F407 bool "16KiB bootloader (HID Bootloader)" if MACH_STM32F405 || MACH_STM32F407
config STM32_FLASH_START_5000
bool "20KiB bootloader" if MACH_STM32F103
config STM32_FLASH_START_7000 config STM32_FLASH_START_7000
bool "28KiB bootloader" if MACH_STM32F103 bool "28KiB bootloader" if MACH_STM32F103
config STM32_FLASH_START_8000 config STM32_FLASH_START_8000
@ -115,6 +117,7 @@ config FLASH_START
default 0x8000800 if STM32_FLASH_START_800 default 0x8000800 if STM32_FLASH_START_800
default 0x8002000 if STM32_FLASH_START_2000 default 0x8002000 if STM32_FLASH_START_2000
default 0x8004000 if STM32_FLASH_START_4000 default 0x8004000 if STM32_FLASH_START_4000
default 0x8005000 if STM32_FLASH_START_5000
default 0x8007000 if STM32_FLASH_START_7000 default 0x8007000 if STM32_FLASH_START_7000
default 0x8008000 if STM32_FLASH_START_8000 default 0x8008000 if STM32_FLASH_START_8000
default 0x8010000 if STM32_FLASH_START_10000 default 0x8010000 if STM32_FLASH_START_10000