Skip to content

Commit

Permalink
Add STM32Duino to bootloader selection (qmk#10558)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Oct 12, 2020
1 parent adc06c5 commit d46b8ef
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 147 deletions.
12 changes: 12 additions & 0 deletions bootloader.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 0 additions & 10 deletions keyboards/cannonkeys/ortho48/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/cannonkeys/ortho48/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# project specific files
VPATH += keyboards/cannonkeys/bluepill
Expand Down
10 changes: 0 additions & 10 deletions keyboards/cannonkeys/ortho60/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/cannonkeys/ortho60/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# project specific files
VPATH += keyboards/cannonkeys/bluepill
Expand Down
10 changes: 0 additions & 10 deletions keyboards/cannonkeys/ortho75/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/cannonkeys/ortho75/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# project specific files
VPATH += keyboards/cannonkeys/bluepill
Expand Down
10 changes: 0 additions & 10 deletions keyboards/cannonkeys/practice60/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/cannonkeys/practice60/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# project specific files
VPATH += keyboards/cannonkeys/bluepill
Expand Down
10 changes: 0 additions & 10 deletions keyboards/cannonkeys/practice65/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/cannonkeys/practice65/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# project specific files
VPATH += keyboards/cannonkeys/bluepill
Expand Down
10 changes: 0 additions & 10 deletions keyboards/converter/siemens_tastatur/bootloader_defs.h

This file was deleted.

8 changes: 2 additions & 6 deletions keyboards/converter/siemens_tastatur/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

SRC = matrix.c

Expand Down
10 changes: 0 additions & 10 deletions keyboards/handwired/onekey/bluepill/bootloader_defs.h

This file was deleted.

9 changes: 2 additions & 7 deletions keyboards/handwired/onekey/bluepill/rules.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003

# Bootloader selection
BOOTLOADER = stm32duino

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
9 changes: 2 additions & 7 deletions keyboards/handwired/t111/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO
STM32_BOOTLOADER_ADDRESS = 0x80000000

DFU_ARGS = -d 1EAF:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
Expand Down
9 changes: 2 additions & 7 deletions keyboards/handwired/z150/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO
STM32_BOOTLOADER_ADDRESS = 0x80000000

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
Expand Down
11 changes: 0 additions & 11 deletions keyboards/wolfmarkclub/wm1/bootloader_defs.h

This file was deleted.

6 changes: 4 additions & 2 deletions keyboards/wolfmarkclub/wm1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# MCU name
MCU = STM32F103

# Bootloader selection
BOOTLOADER = stm32duino

# GENERIC STM32F103C8T6 board - mass storage bootloader
MCU_LDSCRIPT = wm1_f103
BOARD = STM32_F103_STM32DUINO

PROGRAM_CMD=echo 'CLI flashing not supported' >&2
PROGRAM_CMD = echo 'CLI flashing not supported' >&2

# Build Options
# change yes to no to disable
Expand Down
9 changes: 2 additions & 7 deletions keyboards/zvecr/split_blackpill/rules.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# MCU name
MCU = STM32F103

# GENERIC STM32F103C8T6 board - stm32duino bootloader
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO
STM32_BOOTLOADER_ADDRESS = 0x80000000

DFU_ARGS = -d 1eaf:0003 -a2 -R
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
# Bootloader selection
BOOTLOADER = stm32duino

# Build Options
# change yes to no to disable
Expand Down

0 comments on commit d46b8ef

Please sign in to comment.