aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r--src/stm32/Kconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 2b315672..201322b5 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -74,7 +74,7 @@ config FLASH_SIZE
hex
default 0x8000 if MACH_STM32F042
default 0x20000 if MACH_STM32F070
- default 0x10000 if MACH_STM32F103
+ default 0x10000 if MACH_STM32F103 # Flash size of stm32f103x8 (64KiB)
default 0x80000 if MACH_STM32F4
config RAM_START
@@ -85,7 +85,7 @@ config RAM_SIZE
hex
default 0x1800 if MACH_STM32F042
default 0x4000 if MACH_STM32F070
- default 0x5000 if MACH_STM32F103
+ default 0x5000 if MACH_STM32F103 # Ram size of stm32f103x8 (20KiB)
default 0x20000 if MACH_STM32F4
config STACK_SIZE
@@ -100,6 +100,8 @@ choice
bool "28KiB bootloader" if MACH_STM32F103
config STM32_FLASH_START_8000
bool "32KiB bootloader (SKR-PRO)" if MACH_STM32F407
+ config STM32_FLASH_START_10000
+ bool "64KiB bootloader (Alfawise)" if MACH_STM32F103
config STM32_FLASH_START_0000
bool "No bootloader"
endchoice
@@ -108,6 +110,7 @@ config FLASH_START
default 0x8002000 if STM32_FLASH_START_2000
default 0x8007000 if STM32_FLASH_START_7000
default 0x8008000 if STM32_FLASH_START_8000
+ default 0x8010000 if STM32_FLASH_START_10000
default 0x8000000
config ARMCM_RAM_VECTORTABLE