diff options
| author | thpoll83 <67008047+thpoll83@users.noreply.github.com> | 2021-08-08 22:52:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 06:52:13 +1000 |
| commit | b43c6bc176dcd612ae14f9819a171abe286e92bc (patch) | |
| tree | 3a012b36fdb81338603db21b86a1ce72d28dce3d /quantum | |
| parent | ac92ded0ccd6a85a6f34e81287ec66fad7402add (diff) | |
| download | qmk_firmware-b43c6bc176dcd612ae14f9819a171abe286e92bc.tar.gz qmk_firmware-b43c6bc176dcd612ae14f9819a171abe286e92bc.zip | |
Add support for STM32F407x MCUs. (#13718)
* Add support for STM32F407x MCUs.
* Removing STMF407 MCU variation
* Update quantum/mcu_selection.mk
Remove options for dfu flashing
Co-authored-by: Ryan <fauxpark@gmail.com>
* DISABLE STM32_USB_USE_OTG1
* Update platforms/chibios/GENERIC_STM32_F407XE/configs/mcuconf.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update platforms/chibios/GENERIC_STM32_F407XE/configs/mcuconf.h
Co-authored-by: thomas.pollak <thomas.pollak@dynatrace.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/mcu_selection.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index ca0accd71..dc441d27b 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -268,6 +268,38 @@ ifneq ($(findstring STM32F401, $(MCU)),) | |||
| 268 | UF2_FAMILY ?= STM32F4 | 268 | UF2_FAMILY ?= STM32F4 |
| 269 | endif | 269 | endif |
| 270 | 270 | ||
| 271 | ifneq ($(findstring STM32F407, $(MCU)),) | ||
| 272 | # Cortex version | ||
| 273 | MCU = cortex-m4 | ||
| 274 | |||
| 275 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 276 | ARMV = 7 | ||
| 277 | |||
| 278 | ## chip/board settings | ||
| 279 | # - the next two should match the directories in | ||
| 280 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 281 | MCU_FAMILY = STM32 | ||
| 282 | MCU_SERIES = STM32F4xx | ||
| 283 | |||
| 284 | # Linker script to use | ||
| 285 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 286 | # or <keyboard_dir>/ld/ | ||
| 287 | MCU_LDSCRIPT ?= STM32F407xE | ||
| 288 | |||
| 289 | # Startup code to use | ||
| 290 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
| 291 | MCU_STARTUP ?= stm32f4xx | ||
| 292 | |||
| 293 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 294 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 295 | BOARD ?= GENERIC_STM32_F407XE | ||
| 296 | |||
| 297 | USE_FPU ?= yes | ||
| 298 | |||
| 299 | # UF2 settings | ||
| 300 | UF2_FAMILY ?= STM32F4 | ||
| 301 | endif | ||
| 302 | |||
| 271 | ifneq ($(findstring STM32F411, $(MCU)),) | 303 | ifneq ($(findstring STM32F411, $(MCU)),) |
| 272 | # Cortex version | 304 | # Cortex version |
| 273 | MCU = cortex-m4 | 305 | MCU = cortex-m4 |
