diff options
| author | QMK Bot <hello@qmk.fm> | 2021-01-20 03:05:04 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-01-20 03:05:04 +0000 |
| commit | a9df4263bbcd2fdcbc8802d675965a68eaa209cf (patch) | |
| tree | c42c2fbc81ab6c18883ca81269f04ea7f223fdc0 /bootloader.mk | |
| parent | a9dee31362cceba0c57e5c25468bd93324672ee5 (diff) | |
| parent | eba512596a0e7845b9cf7efdad19b820e9974e00 (diff) | |
| download | qmk_firmware-a9df4263bbcd2fdcbc8802d675965a68eaa209cf.tar.gz qmk_firmware-a9df4263bbcd2fdcbc8802d675965a68eaa209cf.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'bootloader.mk')
| -rw-r--r-- | bootloader.mk | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/bootloader.mk b/bootloader.mk index 5487f9ece..8b4bc7a0f 100644 --- a/bootloader.mk +++ b/bootloader.mk | |||
| @@ -20,15 +20,19 @@ | |||
| 20 | # Sets the bootloader defined in the keyboard's/keymap's rules.mk | 20 | # Sets the bootloader defined in the keyboard's/keymap's rules.mk |
| 21 | # Current options: | 21 | # Current options: |
| 22 | # | 22 | # |
| 23 | # halfkay PJRC Teensy | 23 | # AVR: |
| 24 | # caterina Pro Micro (Sparkfun/generic) | 24 | # halfkay PJRC Teensy |
| 25 | # atmel-dfu Atmel factory DFU | 25 | # caterina Pro Micro (Sparkfun/generic) |
| 26 | # lufa-dfu LUFA DFU | 26 | # atmel-dfu Atmel factory DFU |
| 27 | # qmk-dfu QMK DFU (LUFA + blinkenlight) | 27 | # lufa-dfu LUFA DFU |
| 28 | # bootloadHID HIDBootFlash compatible (ATmega32A) | 28 | # qmk-dfu QMK DFU (LUFA + blinkenlight) |
| 29 | # USBasp USBaspLoader (ATmega328P) | 29 | # bootloadHID HIDBootFlash compatible (ATmega32A) |
| 30 | # kiibohd Input:Club Kiibohd bootloader (only used on their boards) | 30 | # USBasp USBaspLoader (ATmega328P) |
| 31 | # stm32duino STM32Duino (STM32F103x8) | 31 | # ARM: |
| 32 | # kiibohd Input:Club Kiibohd bootloader (only used on their boards) | ||
| 33 | # stm32duino STM32Duino (STM32F103x8) | ||
| 34 | # stm32-dfu STM32 USB DFU in ROM | ||
| 35 | # apm32-dfu APM32 USB DFU in ROM | ||
| 32 | # | 36 | # |
| 33 | # BOOTLOADER_SIZE can still be defined manually, but it's recommended | 37 | # BOOTLOADER_SIZE can still be defined manually, but it's recommended |
| 34 | # you add any possible configuration to this list | 38 | # you add any possible configuration to this list |
| @@ -95,6 +99,20 @@ ifdef BOOTLOADER_SIZE | |||
| 95 | OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) | 99 | OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) |
| 96 | endif | 100 | endif |
| 97 | 101 | ||
| 102 | ifeq ($(strip $(BOOTLOADER)), stm32-dfu) | ||
| 103 | OPT_DEFS += -DBOOTLOADER_STM32_DFU | ||
| 104 | |||
| 105 | # Options to pass to dfu-util when flashing | ||
| 106 | DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave | ||
| 107 | DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 | ||
| 108 | endif | ||
| 109 | ifeq ($(strip $(BOOTLOADER)), apm32-dfu) | ||
| 110 | OPT_DEFS += -DBOOTLOADER_APM32_DFU | ||
| 111 | |||
| 112 | # Options to pass to dfu-util when flashing | ||
| 113 | DFU_ARGS ?= -d 314B:0106 -a 0 -s 0x08000000:leave | ||
| 114 | DFU_SUFFIX_ARGS ?= -v 314B -p 0106 | ||
| 115 | endif | ||
| 98 | ifeq ($(strip $(BOOTLOADER)), kiibohd) | 116 | ifeq ($(strip $(BOOTLOADER)), kiibohd) |
| 99 | OPT_DEFS += -DBOOTLOADER_KIIBOHD | 117 | OPT_DEFS += -DBOOTLOADER_KIIBOHD |
| 100 | ifeq ($(strip $(MCU_ORIG)), MK20DX128) | 118 | ifeq ($(strip $(MCU_ORIG)), MK20DX128) |
| @@ -104,10 +122,10 @@ ifeq ($(strip $(BOOTLOADER)), kiibohd) | |||
| 104 | MCU_LDSCRIPT = MK20DX256BLDR8 | 122 | MCU_LDSCRIPT = MK20DX256BLDR8 |
| 105 | endif | 123 | endif |
| 106 | 124 | ||
| 125 | # Options to pass to dfu-util when flashing | ||
| 107 | DFU_ARGS = -d 1C11:B007 | 126 | DFU_ARGS = -d 1C11:B007 |
| 108 | DFU_SUFFIX_ARGS = -v 1C11 -p B007 | 127 | DFU_SUFFIX_ARGS = -v 1C11 -p B007 |
| 109 | endif | 128 | endif |
| 110 | |||
| 111 | ifeq ($(strip $(BOOTLOADER)), stm32duino) | 129 | ifeq ($(strip $(BOOTLOADER)), stm32duino) |
| 112 | OPT_DEFS += -DBOOTLOADER_STM32DUINO | 130 | OPT_DEFS += -DBOOTLOADER_STM32DUINO |
| 113 | MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader | 131 | MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader |
| @@ -115,6 +133,7 @@ ifeq ($(strip $(BOOTLOADER)), stm32duino) | |||
| 115 | # STM32F103 does NOT have an USB bootloader in ROM (only serial), so setting anything here does not make much sense | 133 | # STM32F103 does NOT have an USB bootloader in ROM (only serial), so setting anything here does not make much sense |
| 116 | STM32_BOOTLOADER_ADDRESS = 0x80000000 | 134 | STM32_BOOTLOADER_ADDRESS = 0x80000000 |
| 117 | 135 | ||
| 118 | DFU_ARGS = -d 1EAF:0003 -a2 -R | 136 | # Options to pass to dfu-util when flashing |
| 137 | DFU_ARGS = -d 1EAF:0003 -a 2 -R | ||
| 119 | DFU_SUFFIX_ARGS = -v 1EAF -p 0003 | 138 | DFU_SUFFIX_ARGS = -v 1EAF -p 0003 |
| 120 | endif | 139 | endif |
