diff options
author | Xelus22 <17491233+Xelus22@users.noreply.github.com> | 2021-04-26 03:07:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 13:07:15 +1000 |
commit | 9cf82fae9566c68ea2ffcb120375868f27f94ecf (patch) | |
tree | 81cd0c82ec0ae607dbdafa6d47c131a19d4862dd /quantum | |
parent | 5168af9a9bd0693cd5bddd4a07bea464015b5e5a (diff) | |
download | qmk_firmware-9cf82fae9566c68ea2ffcb120375868f27f94ecf.tar.gz qmk_firmware-9cf82fae9566c68ea2ffcb120375868f27f94ecf.zip |
Add STM32L433 and L443 support (#12063)
* initial L433 commit
* change to XC
* fix L433
* disable all peripherals
* update system and peripheral clocks
* 433 change
* use its own board files
* revert its own board files
* l433 specific change
* fix stm32l432xx define
* remove duplicate #define
* fix bootloader jump
* move to L443xx and add i2c2, spi2, usart3 to mcuconf.h
* move to L443
* move to L443
* fix sdmmc in mcuconf.h
* include STM32L443
* add L443
* Include L443 in compatible microcontrollers
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Include L443 in compatible microcontrollers
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update config bootloader jump description
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update ChibiOS define reasoning
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update quantum/mcu_selection.mk
Co-authored-by: Nick Brassel <nick@tzarc.org>
* fix git conflict
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/mcu_selection.mk | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index edf44f5dc..9268c4522 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
@@ -435,6 +435,44 @@ ifneq ($(findstring STM32G474, $(MCU)),) | |||
435 | UF2_FAMILY ?= STM32G4 | 435 | UF2_FAMILY ?= STM32G4 |
436 | endif | 436 | endif |
437 | 437 | ||
438 | ifneq (,$(filter $(MCU),STM32L433 STM32L443)) | ||
439 | # Cortex version | ||
440 | MCU = cortex-m4 | ||
441 | |||
442 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
443 | ARMV = 7 | ||
444 | |||
445 | ## chip/board settings | ||
446 | # - the next two should match the directories in | ||
447 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
448 | MCU_FAMILY = STM32 | ||
449 | MCU_SERIES = STM32L4xx | ||
450 | |||
451 | # Linker script to use | ||
452 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
453 | # or <keyboard_dir>/ld/ | ||
454 | MCU_LDSCRIPT ?= STM32L432xC | ||
455 | |||
456 | # Startup code to use | ||
457 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
458 | MCU_STARTUP ?= stm32l4xx | ||
459 | |||
460 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
461 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
462 | BOARD ?= GENERIC_STM32_L433XC | ||
463 | |||
464 | PLATFORM_NAME ?= platform_l432 | ||
465 | |||
466 | USE_FPU ?= yes | ||
467 | |||
468 | # Options to pass to dfu-util when flashing | ||
469 | DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave | ||
470 | DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 | ||
471 | |||
472 | # UF2 settings | ||
473 | UF2_FAMILY ?= STM32L4 | ||
474 | endif | ||
475 | |||
438 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) | 476 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) |
439 | PROTOCOL = LUFA | 477 | PROTOCOL = LUFA |
440 | 478 | ||