Browse Source

stm32: Add basic support for STM32H750.

pull/7797/head
Jan Hrudka 3 years ago
committed by Damien George
parent
commit
d451dc0086
  1. 4
      ports/stm32/Makefile
  2. 3
      ports/stm32/adc.c
  3. 2
      ports/stm32/mboot/main.c
  4. 2
      ports/stm32/powerctrl.c

4
ports/stm32/Makefile

@ -77,7 +77,7 @@ CFLAGS_CORTEX_M = -mthumb
# Select hardware floating-point support # Select hardware floating-point support
SUPPORTS_HARDWARE_FP_SINGLE = 0 SUPPORTS_HARDWARE_FP_SINGLE = 0
SUPPORTS_HARDWARE_FP_DOUBLE = 0 SUPPORTS_HARDWARE_FP_DOUBLE = 0
ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32F765xx STM32F767xx STM32F769xx STM32H743xx)) ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32F765xx STM32F767xx STM32F769xx STM32H743xx STM32H750xx))
CFLAGS_CORTEX_M += -mfpu=fpv5-d16 -mfloat-abi=hard CFLAGS_CORTEX_M += -mfpu=fpv5-d16 -mfloat-abi=hard
SUPPORTS_HARDWARE_FP_SINGLE = 1 SUPPORTS_HARDWARE_FP_SINGLE = 1
SUPPORTS_HARDWARE_FP_DOUBLE = 1 SUPPORTS_HARDWARE_FP_DOUBLE = 1
@ -424,7 +424,7 @@ HAL_SRC_C += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
) )
endif endif
ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32H743xx)) ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32H743xx STM32H750xx))
HAL_SRC_C += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_, hal_fdcan.c) HAL_SRC_C += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_, hal_fdcan.c)
else else
ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 f4 f7 h7 l4)) ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 f4 f7 h7 l4))

3
ports/stm32/adc.c

@ -136,7 +136,8 @@
defined(STM32F746xx) || defined(STM32F765xx) || \ defined(STM32F746xx) || defined(STM32F765xx) || \
defined(STM32F767xx) || defined(STM32F769xx) defined(STM32F767xx) || defined(STM32F769xx)
#define VBAT_DIV (4) #define VBAT_DIV (4)
#elif defined(STM32H743xx) || defined(STM32H747xx) #elif defined(STM32H743xx) || defined(STM32H747xx) || \
defined(STM32H750xx)
#define VBAT_DIV (4) #define VBAT_DIV (4)
#elif defined(STM32L432xx) || \ #elif defined(STM32L432xx) || \
defined(STM32L451xx) || defined(STM32L452xx) || \ defined(STM32L451xx) || defined(STM32L452xx) || \

2
ports/stm32/mboot/main.c

@ -501,6 +501,8 @@ void led0_update() {
#define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/04*032Kg,01*128Kg,07*256Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT #define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/04*032Kg,01*128Kg,07*256Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT
#elif defined(STM32H743xx) #elif defined(STM32H743xx)
#define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/16*128Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT #define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/16*128Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT
#elif defined(STM32H750xx)
#define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/01*128Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT
#elif defined(STM32WB) #elif defined(STM32WB)
#define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/256*04Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT #define FLASH_LAYOUT_STR "@Internal Flash /0x08000000/256*04Kg" MBOOT_SPIFLASH_LAYOUT MBOOT_SPIFLASH2_LAYOUT
#endif #endif

2
ports/stm32/powerctrl.c

@ -32,7 +32,7 @@
#if defined(STM32H7) #if defined(STM32H7)
#define RCC_SR RSR #define RCC_SR RSR
#if defined(STM32H743xx) #if defined(STM32H743xx) || defined(STM32H750xx)
#define RCC_SR_SFTRSTF RCC_RSR_SFTRSTF #define RCC_SR_SFTRSTF RCC_RSR_SFTRSTF
#elif defined(STM32H747xx) #elif defined(STM32H747xx)
#define RCC_SR_SFTRSTF RCC_RSR_SFT2RSTF #define RCC_SR_SFTRSTF RCC_RSR_SFT2RSTF

Loading…
Cancel
Save