diff options
author | Purdea Andrei <andrei@purdea.ro> | 2021-04-25 11:59:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 18:59:25 +1000 |
commit | 3f7350732c9722b87ea52eee740e587a70b8fb38 (patch) | |
tree | d8d131891ba3a0231a3d061359aa1b4966b4bf8d /quantum | |
parent | 5b1c3e360a750a6638ac363d84a6f0d0670f9a5c (diff) | |
download | qmk_firmware-3f7350732c9722b87ea52eee740e587a70b8fb38.tar.gz qmk_firmware-3f7350732c9722b87ea52eee740e587a70b8fb38.zip |
Add support for MCU = STM32F446 (#12619)
* Add support for MCU = STM32F446
* Update platforms/chibios/GENERIC_STM32_F446XE/configs/config.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Restore mcuconf.h to the one used by RT-STM32F446RE-NUCLEO64
* stm32f446: update mcuconf.h and board.h for 16MHz operation, with USB enabled, and other peripherals disabled.
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/mcu_selection.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index 437d354fb..edf44f5dc 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
@@ -329,6 +329,40 @@ ifneq ($(findstring STM32F411, $(MCU)),) | |||
329 | UF2_FAMILY ?= STM32F4 | 329 | UF2_FAMILY ?= STM32F4 |
330 | endif | 330 | endif |
331 | 331 | ||
332 | ifneq ($(findstring STM32F446, $(MCU)),) | ||
333 | # Cortex version | ||
334 | MCU = cortex-m4 | ||
335 | |||
336 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
337 | ARMV = 7 | ||
338 | |||
339 | ## chip/board settings | ||
340 | # - the next two should match the directories in | ||
341 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
342 | MCU_FAMILY = STM32 | ||
343 | MCU_SERIES = STM32F4xx | ||
344 | |||
345 | # Linker script to use | ||
346 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
347 | # or <chibios>/os/common/startup/ARMCMx/compilers/GCC/ld/ | ||
348 | # or <keyboard_dir>/ld/ | ||
349 | MCU_LDSCRIPT ?= STM32F446xE | ||
350 | |||
351 | # Startup code to use | ||
352 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
353 | MCU_STARTUP ?= stm32f4xx | ||
354 | |||
355 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
356 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
357 | BOARD ?= GENERIC_STM32_F446XE | ||
358 | |||
359 | USE_FPU ?= yes | ||
360 | |||
361 | # Options to pass to dfu-util when flashing | ||
362 | DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave | ||
363 | DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 | ||
364 | endif | ||
365 | |||
332 | ifneq ($(findstring STM32G431, $(MCU)),) | 366 | ifneq ($(findstring STM32G431, $(MCU)),) |
333 | # Cortex version | 367 | # Cortex version |
334 | MCU = cortex-m4 | 368 | MCU = cortex-m4 |