Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Klipper3d/klipper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-09 01:25:10 +0300
committerKevin O'Connor <kevin@koconnor.net>2022-06-09 01:25:10 +0300
commit41edd554cfea51724d84d8a1d92ca956e4077685 (patch)
treee8152c9b87a18fd772f463df18174873253c01ec
parentf42ce3e2fd6de3129e196507b7c862cb511f62de (diff)
stm32: Support 4KiB bootloader on stm32f1 and stm32f0work-canboot4k-20220608
The CanBoot bootloader can often fit in 4KiB and that may be useful for some devices with small flash sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/stm32/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 30c724141..bad86a8c3 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -204,6 +204,8 @@ choice
config STM32_FLASH_START_800
bool "2KiB bootloader (HID Bootloader)" if MACH_STM32F103
+ config STM32_FLASH_START_1000
+ bool "4KiB bootloader" if MACH_STM32F1 || MACH_STM32F0
config STM32_FLASH_START_4000
bool "16KiB bootloader (HID Bootloader)" if MACH_STM32F207 || MACH_STM32F401 || MACH_STM32F4x5 || MACH_STM32F103 || MACH_STM32F072
config STM32_FLASH_START_20000
@@ -215,6 +217,7 @@ endchoice
config FLASH_START
hex
default 0x8000800 if STM32_FLASH_START_800
+ default 0x8001000 if STM32_FLASH_START_1000
default 0x8002000 if STM32_FLASH_START_2000
default 0x8004000 if STM32_FLASH_START_4000
default 0x8005000 if STM32_FLASH_START_5000