diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-15 12:55:31 +1100 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:43:31 -0800 |
commit | 112cf40d6d25e5b8f830e381321d7dcd06b6225a (patch) | |
tree | f43d69b2250bb7fdc416839d555cdddfd8946dad | |
parent | b6dbef77e21ae09a1ac7def74986ee3889f581bb (diff) |
Fix STM32duino bootloader (#10648)
-rw-r--r-- | bootloader.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bootloader.mk b/bootloader.mk index d5f803f896..86c5d58f90 100644 --- a/bootloader.mk +++ b/bootloader.mk @@ -106,3 +106,14 @@ ifeq ($(strip $(BOOTLOADER)), kiibohd) DFU_ARGS = -d 1C11:B007 DFU_SUFFIX_ARGS = -v 1C11 -p B007 endif + +ifeq ($(strip $(BOOTLOADER)), stm32duino) + OPT_DEFS += -DBOOTLOADER_STM32DUINO + MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader + BOARD = STM32_F103_STM32DUINO + # STM32F103 does NOT have an USB bootloader in ROM (only serial), so setting anything here does not make much sense + STM32_BOOTLOADER_ADDRESS = 0x80000000 + + DFU_ARGS = -d 1EAF:0003 -a2 -R + DFU_SUFFIX_ARGS = -v 1EAF -p 0003 +endif |