Add STM32Duino to bootloader selection (#10558)
This commit is contained in:
parent
adc06c5b3b
commit
d46b8ef67c
@ -28,6 +28,7 @@
|
|||||||
# bootloadHID HIDBootFlash compatible (ATmega32A)
|
# bootloadHID HIDBootFlash compatible (ATmega32A)
|
||||||
# USBasp USBaspLoader (ATmega328P)
|
# USBasp USBaspLoader (ATmega328P)
|
||||||
# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
|
# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
|
||||||
|
# stm32duino STM32Duino (STM32F103x8)
|
||||||
#
|
#
|
||||||
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
|
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
|
||||||
# you add any possible configuration to this list
|
# you add any possible configuration to this list
|
||||||
@ -106,3 +107,14 @@ ifeq ($(strip $(BOOTLOADER)), kiibohd)
|
|||||||
DFU_ARGS = -d 1C11:B007
|
DFU_ARGS = -d 1C11:B007
|
||||||
DFU_SUFFIX_ARGS = -v 1C11 -p B007
|
DFU_SUFFIX_ARGS = -v 1C11 -p B007
|
||||||
endif
|
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
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# project specific files
|
# project specific files
|
||||||
VPATH += keyboards/cannonkeys/bluepill
|
VPATH += keyboards/cannonkeys/bluepill
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# project specific files
|
# project specific files
|
||||||
VPATH += keyboards/cannonkeys/bluepill
|
VPATH += keyboards/cannonkeys/bluepill
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# project specific files
|
# project specific files
|
||||||
VPATH += keyboards/cannonkeys/bluepill
|
VPATH += keyboards/cannonkeys/bluepill
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# project specific files
|
# project specific files
|
||||||
VPATH += keyboards/cannonkeys/bluepill
|
VPATH += keyboards/cannonkeys/bluepill
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# project specific files
|
# project specific files
|
||||||
VPATH += keyboards/cannonkeys/bluepill
|
VPATH += keyboards/cannonkeys/bluepill
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
SRC = matrix.c
|
SRC = matrix.c
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103* does NOT have an USB bootloader in ROM (only serial),
|
|
||||||
// so setting anything here does not make much sense
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,13 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
|
|
||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
STM32_BOOTLOADER_ADDRESS = 0x80000000
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1EAF:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
|
|
||||||
|
|
||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
STM32_BOOTLOADER_ADDRESS = 0x80000000
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
/* Address for jumping to bootloader on STM32 chips. */
|
|
||||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
|
||||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
|
||||||
* This also requires a patch to chibios:
|
|
||||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
|
||||||
*/
|
|
||||||
|
|
||||||
// STM32F103 does not have a USB bootloader in ROM -- the WM1
|
|
||||||
// has a usermode USB mass storage device bootloader at the normal
|
|
||||||
// boot address -- `0x08000000`.
|
|
||||||
#define STM32_BOOTLOADER_ADDRESS 0x80000000
|
|
@ -1,9 +1,11 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = stm32duino
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - mass storage bootloader
|
# GENERIC STM32F103C8T6 board - mass storage bootloader
|
||||||
MCU_LDSCRIPT = wm1_f103
|
MCU_LDSCRIPT = wm1_f103
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
|
|
||||||
PROGRAM_CMD = echo 'CLI flashing not supported' >&2
|
PROGRAM_CMD = echo 'CLI flashing not supported' >&2
|
||||||
|
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F103
|
MCU = STM32F103
|
||||||
|
|
||||||
# GENERIC STM32F103C8T6 board - stm32duino bootloader
|
# Bootloader selection
|
||||||
MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
|
BOOTLOADER = stm32duino
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
STM32_BOOTLOADER_ADDRESS = 0x80000000
|
|
||||||
|
|
||||||
DFU_ARGS = -d 1eaf:0003 -a2 -R
|
|
||||||
DFU_SUFFIX_ARGS = -v 1eaf -p 0003
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# change yes to no to disable
|
# change yes to no to disable
|
||||||
|
Loading…
Reference in New Issue
Block a user