Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwmv2: port STM32H7 SoCs and boards #68665

Merged
merged 15 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions boards/arduino/arduino_giga_r1/Kconfig.arduino_giga_r1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_GIGA_R1
select SOC_STM32H747XX_M7 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7
select SOC_STM32H747XX_M4 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4
18 changes: 18 additions & 0 deletions boards/arduino/arduino_giga_r1/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0

if BOARD_ARDUINO_GIGA_R1

if BT

choice AIROC_PART
default CYW4343W
endchoice

choice CYW4343W_MODULE
default CYW4343W_MURATA_1DX
endchoice

endif # BT

endif # BOARD_ARDUINO_GIGA_R1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: arduino_giga_r1_m4
identifier: arduino_giga_r1/stm32h747xx/m4
name: Arduino GIGA R1 WiFi (M4)
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y

# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_GIGA_R1_M4=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: arduino_giga_r1_m7
identifier: arduino_giga_r1/stm32h747xx/m7
name: Arduino GIGA R1 WiFi (M7)
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y

# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_GIGA_R1_M7=y

# Disable the internal SMPS regulator
CONFIG_POWER_SUPPLY_DIRECT_SMPS=n

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOARD_ARDUINO_GIGA_R1_M7)
if(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7)
board_runner_args(jlink "--device=STM32H747XI_M7" "--speed=4000")
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m7.cfg")
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
elseif(CONFIG_BOARD_ARDUINO_GIGA_R1_M4)
elseif(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4)
board_runner_args(jlink "--device=STM32H747XI_M4" "--speed=4000")
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m4.cfg")
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
Expand Down
5 changes: 5 additions & 0 deletions boards/arduino/arduino_giga_r1/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_giga_r1
vendor: arduino
socs:
- name: stm32h747xx
nordicjm marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Programming and Debugging
*************************

Applications for the ``arduino_giga_r1`` board should be built per core target,
using either ``arduino_giga_r1_m7`` or ``arduino_giga_r1_m4`` as the target.
using either ``arduino_giga_r1/stm32h747xx/m7`` or ``arduino_giga_r1/stm32h747xx/m4`` as the target.

See :ref:`build_an_application` for more information about application builds.

Expand Down Expand Up @@ -134,7 +134,7 @@ Here is an example for the :ref:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: arduino_giga_r1_m7
:board: arduino_giga_r1/stm32h747xx/m7
:goals: build flash

Run a serial host program to connect with your board:
Expand All @@ -147,15 +147,15 @@ You should see the following message on the console:

.. code-block:: console

Hello World! arduino_giga_r1_m7
Hello World! arduino_giga_r1

Similarly, you can build and flash samples on the M4 target.

Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.

.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: arduino_giga_r1_m4
:board: arduino_giga_r1/stm32h747xx/m4
:goals: build flash

Debugging
Expand Down
5 changes: 5 additions & 0 deletions boards/arduino/arduino_opta/Kconfig.arduino_opta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_OPTA
select SOC_STM32H747XX_M4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: arduino_opta_m4
identifier: arduino_opta/stm32h747xx/m4
name: ARDUINO OPTA (M4)
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y

CONFIG_BOARD_ARDUINO_OPTA_M4=y

# enable GPIO
CONFIG_GPIO=y

Expand Down
5 changes: 5 additions & 0 deletions boards/arduino/arduino_opta/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_opta
vendor: arduino
socs:
- name: stm32h747xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _arduino_opta_m4_board:

Arduino OPTA M4-Core
#######################
####################

Overview
********
Expand Down Expand Up @@ -63,7 +63,7 @@ The current Zephyr arduino_opta_m4 board configuration supports the following ha
Other hardware features are not yet supported on Zephyr porting.

The default configuration per core can be found in the defconfig files:
``boards/arm/arduino_opta_m4/arduino_opta_m4_defconfig``
:zephyr_file:`boards/arduino/arduino_opta/arduino_opta_m4_defconfig`

Pin Mapping
===========
Expand Down Expand Up @@ -107,7 +107,7 @@ two cores. This is done in 3 ways:
Programming and Debugging
*************************

Applications for the ``arduino_opta_m4`` use the regular Zephyr build commands.
Applications for the ``arduino_opta`` use the regular Zephyr build commands.
See :ref:`build_an_application` for more information about application builds.

Flashing
Expand Down Expand Up @@ -135,7 +135,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.

.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: arduino_opta_m4
:board: arduino_opta/stm32h747xx/m4
:goals: build flash

Starting the application on the ARDUINO OPTA M4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7)
if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7)

zephyr_library()
zephyr_library_sources(board.c)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Arduino Portenta H7 board configuration

# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_PORTENTA_H7
select SOC_STM32H747XX_M7 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7
select SOC_STM32H747XX_M4 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: arduino_portenta_h7_m4
identifier: arduino_portenta_h7/stm32h747xx/m4
name: Arduino Portenta H7 (M4)
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y

# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M4=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: arduino_portenta_h7_m7
identifier: arduino_portenta_h7/stm32h747xx/m7
name: Arduino Portenta H7 (M7)
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y

# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7=y

# Enable the internal SMPS regulator
CONFIG_POWER_SUPPLY_DIRECT_SMPS=y

Expand Down
5 changes: 5 additions & 0 deletions boards/arduino/arduino_portenta_h7/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_portenta_h7
vendor: arduino
socs:
- name: stm32h747xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _arduino_portenta_h7_board:

Arduino Portenta H7
#######################
###################

Overview
********
Expand Down Expand Up @@ -103,7 +103,7 @@ Here is an example for the :ref:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: arduino_portenta_h7_m7
:board: arduino_portenta_h7/stm32h747xx/m7
:goals: build flash

Run a serial host program to connect with your board:
Expand All @@ -116,7 +116,7 @@ You should see the following message on the console:

.. code-block:: console

Hello World! arduino_portenta_m7
Hello World! arduino_portenta_h7

Similarly, you can build and flash samples on the M4 target. For this, please
take care of the resource sharing (UART port used for console for instance).
Expand All @@ -125,7 +125,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.

.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: arduino_portenta_h7_m4
:board: arduino_portenta_h7/stm32h747xx/m4
:goals: build flash

.. _ARDUINO_PORTENTA_H7 website:
Expand Down
12 changes: 0 additions & 12 deletions boards/boards_legacy/arm/arduino_giga_r1/Kconfig.board

This file was deleted.

22 changes: 0 additions & 22 deletions boards/boards_legacy/arm/arduino_giga_r1/Kconfig.defconfig

This file was deleted.

7 changes: 0 additions & 7 deletions boards/boards_legacy/arm/arduino_opta_m4/Kconfig.board

This file was deleted.

9 changes: 0 additions & 9 deletions boards/boards_legacy/arm/arduino_opta_m4/Kconfig.defconfig

This file was deleted.

14 changes: 0 additions & 14 deletions boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.board

This file was deleted.

12 changes: 0 additions & 12 deletions boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.defconfig

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/fk7b0m1_vbt6/Kconfig.defconfig

This file was deleted.

14 changes: 0 additions & 14 deletions boards/boards_legacy/arm/nucleo_h745zi_q/Kconfig.board

This file was deleted.

Loading
Loading