diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-13 03:19:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 03:19:50 +1100 |
commit | d46b8ef67c91f1794c35a1a91ff9fc7dcba6b009 (patch) | |
tree | 1fd8691fb5325f0259d7b955c8de7c4820108ffd /bootloader.mk | |
parent | adc06c5b3b537f551557dbbd62f43458f6771db0 (diff) | |
download | qmk_firmware-d46b8ef67c91f1794c35a1a91ff9fc7dcba6b009.tar.gz |
Add STM32Duino to bootloader selection (#10558)
Diffstat (limited to 'bootloader.mk')
-rw-r--r-- | bootloader.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootloader.mk b/bootloader.mk index a7e596e47..ab1ced0ea 100644 --- a/bootloader.mk +++ b/bootloader.mk @@ -28,6 +28,7 @@ # bootloadHID HIDBootFlash compatible (ATmega32A) # USBasp USBaspLoader (ATmega328P) # kiibohd Input:Club Kiibohd bootloader (only used on their boards) +# stm32duino STM32Duino (STM32F103x8) # # BOOTLOADER_SIZE can still be defined manually, but it's recommended # you add any possible configuration to this list @@ -106,3 +107,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 |