Skip to content

Commit 955f107

Browse files
committed
Add support for STM32H735G-DK
1 parent fcee061 commit 955f107

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

Bootloader/Inc/board_info.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#define PRODUCT_TYPE (const char*)("IMProject_demo-nucleo_h755zi") // Maximum allowed size is 100 characters (101 bytes)
6464
#elif defined(PIXHAWK4)
6565
#define PRODUCT_TYPE (const char*)("IMProject_demo-pixhawk4") // Maximum allowed size is 100 characters (101 bytes)
66+
#elif defined(STM32H735G_DK)
67+
#define PRODUCT_TYPE (const char*)("IMProject_demo-stm32h735g_dk") // Maximum allowed size is 100 characters (101 bytes)
6668
#else
6769
#define PRODUCT_TYPE (const char*)("Product_type_name-board_name") // Maximum allowed size is 100 characters (101 bytes)
6870
#endif

Bootloader/Inc/boards_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
#define LED_ON GPIO_PIN_RESET
6565
#define LED_OFF GPIO_PIN_SET
6666
#define PWR_SUPPLY PWR_LDO_SUPPLY
67+
#elif defined(STM32H735G_DK)
68+
#define LED1_Pin GPIO_PIN_3 //!< Pin defined for green LED
69+
#define LED1_Port GPIOC
70+
#define LED2_Pin GPIO_PIN_2 //!< Pin defined for red LED
71+
#define LED2_Port GPIOC
72+
#define LED_ON GPIO_PIN_RESET
73+
#define LED_OFF GPIO_PIN_SET
74+
#define PWR_SUPPLY PWR_DIRECT_SMPS_SUPPLY
6775
#else
6876
#define LED1_Pin GPIO_PIN_13
6977
#define LED1_Port GPIOC

Bootloader/STM32/Src/stm32h7xx_hal_msp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ HAL_MspInit(void) {
7676
/* USER CODE END MspInit 1 */
7777
}
7878

79+
#ifndef STM32H735xx
7980
/**
8081
* @brief QSPI MSP Initialization
8182
* This function configures the hardware resources used in this example
@@ -170,6 +171,8 @@ HAL_QSPI_MspDeInit(QSPI_HandleTypeDef* hqspi) {
170171

171172
}
172173

174+
#endif
175+
173176
/**
174177
* @brief RNG MSP Initialization
175178
* This function configures the hardware resources used in this example

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ TARGETS = \
117117
stm32f7xx \
118118
stm32f7xx_ram \
119119
stm32h735g_dk \
120+
stm32h735g_dk_ram \
120121
matek_H7_slim \
121122
matek_H7_slim_ram \
122123
nucleo_h755zi \
@@ -157,6 +158,9 @@ pixhawk4_ram:
157158
stm32h735g_dk:
158159
${MAKE} stm32h7xx BOARD=STM32H735G_DK BOARD_FILE_NAME=$@
159160

161+
stm32h735g_dk_ram:
162+
${MAKE} stm32h7xx_ram BOARD=STM32H735G_DK BOARD_FILE_NAME=$@
163+
160164
test_cmock test_all test_clean:
161165
${MAKE} -C Tests $@
162166

0 commit comments

Comments
 (0)