boards: Convert nucleo_h745zi_q to HWM v2

Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou
2024-02-05 17:54:26 +01:00
committed by Carles Cufi
parent 96f1bafbf9
commit 91f9198dc4
17 changed files with 34 additions and 51 deletions

View File

@@ -1,14 +0,0 @@
# STM32H745ZI Nucleo board configuration
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_NUCLEO_H745ZI_Q_M7
bool "NUCLEO-H745ZI-Q Development Board"
depends on SOC_STM32H745XX
select CPU_CORTEX_M7
config BOARD_NUCLEO_H745ZI_Q_M4
bool "NUCLEO-H745ZI-Q Development Board"
depends on SOC_STM32H745XX
select CPU_CORTEX_M4

View File

@@ -1,19 +0,0 @@
# STM32H745ZI Nucleo board configuration
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
# SPDX-License-Identifier: Apache-2.0
if BOARD_NUCLEO_H745ZI_Q_M7 || BOARD_NUCLEO_H745ZI_Q_M4
config BOARD
default "nucleo_h745zi_q_m7" if BOARD_NUCLEO_H745ZI_Q_M7
default "nucleo_h745zi_q_m4" if BOARD_NUCLEO_H745ZI_Q_M4
if NETWORKING
config NET_L2_ETHERNET
default y
endif # NETWORKING
endif # BOARD_NUCLEO_H745ZI_Q_M7 or BOARD_NUCLEO_H745ZI_Q_M4

View File

@@ -0,0 +1,15 @@
# STM32H745ZI Nucleo board configuration
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
# SPDX-License-Identifier: Apache-2.0
if BOARD_NUCLEO_H745ZI_Q
if NETWORKING
config NET_L2_ETHERNET
default y
endif # NETWORKING
endif # BOARD_NUCLEO_H745ZI_Q

View File

@@ -0,0 +1,8 @@
# STM32H745ZI Nucleo board configuration
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_NUCLEO_H745ZI_Q
select SOC_STM32H745XX_M7 if BOARD_NUCLEO_H745ZI_Q_STM32H745XX_M7
select SOC_STM32H745XX_M4 if BOARD_NUCLEO_H745ZI_Q_STM32H745XX_M4

View File

@@ -1,9 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=STM32H745ZI" "--speed=4000")
if(CONFIG_BOARD_NUCLEO_H745ZI_Q_M7)
if(CONFIG_BOARD_NUCLEO_H745ZI_Q_STM32H745XX_M7)
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
elseif(CONFIG_BOARD_NUCLEO_H745ZI_Q_M4)
elseif(CONFIG_BOARD_NUCLEO_H745ZI_Q_STM32H745XX_M4)
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
endif()

View File

@@ -0,0 +1,5 @@
board:
name: nucleo_h745zi_q
vendor: st
socs:
- name: stm32h745xx

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -119,8 +119,8 @@ features:
Other hardware features are not yet supported on this Zephyr port.
The default configuration per core can be found in the defconfig files:
``boards/arm/nucleo_h745zi_q/nucleo_h745zi_q_m7_defconfig`` and
``boards/arm/nucleo_h745zi_q/nucleo_h745zi_q_m4_defconfig``
:zephyr_file:`boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7_defconfig`` and
:zephyr_file:`boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m4_defconfig`
For more details please refer to `STM32 Nucleo-144 board User Manual`_.

View File

@@ -1,4 +1,4 @@
identifier: nucleo_h745zi_q_m4
identifier: nucleo_h745zi_q/stm32h745xx/m4
name: ST Nucleo H745ZI-Q (M4)
type: mcu
arch: arm

View File

@@ -1,11 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H745XX=y
# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_NUCLEO_H745ZI_Q_M4=y
# Enable GPIO
CONFIG_GPIO=y

View File

@@ -1,4 +1,4 @@
identifier: nucleo_h745zi_q_m7
identifier: nucleo_h745zi_q/stm32h745xx/m7
name: ST Nucleo H745ZI-Q (M7)
type: mcu
arch: arm

View File

@@ -1,11 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H745XX=y
# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_NUCLEO_H745ZI_Q_M7=y
# Enable the internal SMPS regulator
CONFIG_POWER_SUPPLY_DIRECT_SMPS=y