-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for STM32L43x MCUs (#486)
Adds support for the STM32L432 and STM32L431 MCUs. Adds blink_raw for the nucleo-L432KC board. - Adds stm32 cube L4 makefiles and path variables. - Adds generic board definition for L4 MCUs including interrupt vector table. - Adds compilation target for CubeL4 HAL library for the L432 and L431. - Adds HwInit and board directory for nucleo-L432KC. This HwInit uses the internal RC clock as using an external clock would need soldering on the nucleo board. - Renames FLASH_SIZE constant to EEPROMEMU_FLASH_SIZE to resolve a symbol conflict with the L4 HAL library. - Updates STM32 device drivers to support the L432 and L431 chips - Reduces complexity in some of the ifdefs in the STM32 device drivers. === * Adds stm32F4 cube to path.mk * Update F3 to F4 in cubef4.mk * Adds cubeL4 into path and .mk. * Adds interrupt vector table for STM32L4xx * Adds hardware pin mapping for stm32L432KC Adds clock setup routine. Adds blinker timer routine. * Adds template for HAL module configuration. * Fixes a too common symbol in eepromemu driver. This symbol conflicts with an STM32L4 HAL definition. * Adds L4 HAL includes. * Moves over definitions to L4 hal.h * Adds a missing but required definition for default_handlers. * updates forward declarationsfor handlers. * Updates HwInit to fix compilation errors. * Adjusts makefile for L4 includes. * Adds memory map for L432KC. * Adds missing symbols to cover for link errors. * Updates openocd target cfg file. * Adds l432 driver lib build. * Adds necessary build symlinks. * Adds L4 to stm32can. * Fixes stm32gpio to not need to be range specific. * Fixes stm32I2C to not be range specific. * Fixes stm32SPI for L4. * Fixes stm32uart for L4. * Adds cube432 drivers to the target. * Adds blink_raw target for nucleo 432. * fix compile errors. * fix compile error on master. * line up comments. * more alignment work. * Adds l431 directory for HAL / freertos drivers. * cleanup commented code * Add 431 * Fix whitespace.
- Loading branch information
1 parent
07549df
commit e89db63
Showing
37 changed files
with
877 additions
and
527 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/HwInit.cxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/HwInit.cxx |
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/Makefile |
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/hardware.hxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/hardware.hxx |
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/memory_map.ld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/memory_map.ld |
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/startup.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/startup.c |
1 change: 1 addition & 0 deletions
1
applications/blink_raw/targets/freertos.armv7m.st-stm32l432kc-nucleo/target.ld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../boards/st-stm32l432kc-nucleo/target.ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../armv7m/target.ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../st-stm32l4-generic/startup.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../st-stm32l4-generic/target.ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
include $(OPENMRNPATH)/etc/path.mk | ||
|
||
ifdef STM32CUBEF3PATH | ||
ifdef STM32CUBEF4PATH | ||
INCLUDES += -I$(OPENMRNPATH)/src/freertos_drivers/st \ | ||
-I$(STM32CUBEF3PATH)/Drivers/STM32F3xx_HAL_Driver/Inc \ | ||
-I$(STM32CUBEF3PATH)/Drivers/CMSIS/Device/ST/STM32F3xx/Include \ | ||
-I$(STM32CUBEF3PATH)/Drivers/CMSIS/Include | ||
-I$(STM32CUBEF4PATH)/Drivers/STM32F4xx_HAL_Driver/Inc \ | ||
-I$(STM32CUBEF4PATH)/Drivers/CMSIS/Device/ST/STM32F4xx/Include \ | ||
-I$(STM32CUBEF4PATH)/Drivers/CMSIS/Include | ||
endif | ||
|
||
CFLAGS += | ||
CXXFLAGS += | ||
|
||
DEPS += STM32CUBEF3PATH | ||
DEPS += STM32CUBEF4PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
include $(OPENMRNPATH)/etc/path.mk | ||
|
||
ifdef STM32CUBEF3PATH | ||
ifdef STM32CUBEL4PATH | ||
INCLUDES += -I$(OPENMRNPATH)/src/freertos_drivers/st \ | ||
-I$(STM32CUBEF3PATH)/Drivers/STM32F3xx_HAL_Driver/Inc \ | ||
-I$(STM32CUBEF3PATH)/Drivers/CMSIS/Device/ST/STM32F3xx/Include \ | ||
-I$(STM32CUBEF3PATH)/Drivers/CMSIS/Include | ||
-I$(STM32CUBEL4PATH)/Drivers/STM32L4xx_HAL_Driver/Inc \ | ||
-I$(STM32CUBEL4PATH)/Drivers/CMSIS/Device/ST/STM32L4xx/Include \ | ||
-I$(STM32CUBEL4PATH)/Drivers/CMSIS/Include | ||
endif | ||
|
||
CFLAGS += | ||
CXXFLAGS += | ||
|
||
DEPS += STM32CUBEF3PATH | ||
DEPS += STM32CUBEL4PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.