From c4edc7d946fd955a1d94dd888244bf11cd3b6326 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 20 Feb 2021 09:37:43 -0500 Subject: [PATCH] stm32: Add support for 48KiB bootloaders Reported by @mks-viva. Signed-off-by: Kevin O'Connor --- src/stm32/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index 814858eb..646eb8bc 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -128,6 +128,8 @@ choice bool "28KiB bootloader" if MACH_STM32F103 config STM32_FLASH_START_8800 bool "34KiB bootloader (Chitu v6 Bootloader)" if MACH_STM32F103 + config STM32_FLASH_START_C000 + bool "48KiB bootloader (MKS Robin Nano V3)" if MACH_STM32F407 config STM32_FLASH_START_10000 bool "64KiB bootloader (Alfawise)" if MACH_STM32F103 config STM32_FLASH_START_800 @@ -150,6 +152,7 @@ config FLASH_START default 0x8007000 if STM32_FLASH_START_7000 default 0x8008000 if STM32_FLASH_START_8000 default 0x8008800 if STM32_FLASH_START_8800 + default 0x800C000 if STM32_FLASH_START_C000 default 0x8010000 if STM32_FLASH_START_10000 default 0x8000000