Skip to content

Commit

Permalink
stm32: Support for 20KiB bootloader offset. (#3008)
Browse files Browse the repository at this point in the history
Signed-off-by: Kianusch Sayah Karadji <[email protected]>
  • Loading branch information
kianusch authored Jun 20, 2020
1 parent 7550641 commit a4c31ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stm32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ choice
bool "8KiB bootloader (stm32duino)" if MACH_STM32F103 || MACH_STM32F070
config STM32_FLASH_START_4000
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
bool "28KiB bootloader" if MACH_STM32F103
config STM32_FLASH_START_8000
Expand All @@ -115,6 +117,7 @@ config FLASH_START
default 0x8000800 if STM32_FLASH_START_800
default 0x8002000 if STM32_FLASH_START_2000
default 0x8004000 if STM32_FLASH_START_4000
default 0x8005000 if STM32_FLASH_START_5000
default 0x8007000 if STM32_FLASH_START_7000
default 0x8008000 if STM32_FLASH_START_8000
default 0x8010000 if STM32_FLASH_START_10000
Expand Down

1 comment on commit a4c31ba

@alois66
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great ! I do the same modification for a "MKS robin E3" with STM32F103RCT6 fifteen days ago and i can confirm boot ok for me with this FLASH_START address and the "update_mks_robin.py" for the MKS key.

Please sign in to comment.