boards: Convert arduino_opta_m4 to HWM v2
Port the board to HWMv2. Additionally, change the board name to arduino_opta as the compilation target is now fully explicit on the core in use. Besides, it will ease a potential addition of the m7 core. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
committed by
Carles Cufi
parent
b4f852f738
commit
4c86af7eae
5
boards/arduino/arduino_opta/Kconfig.arduino_opta
Normal file
5
boards/arduino/arduino_opta/Kconfig.arduino_opta
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Copyright (c) 2023 Felipe Neves
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
config BOARD_ARDUINO_OPTA
|
||||||
|
select SOC_STM32H747XX_M4
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
identifier: arduino_opta_m4
|
identifier: arduino_opta/stm32h747xx/m4
|
||||||
name: ARDUINO OPTA (M4)
|
name: ARDUINO OPTA (M4)
|
||||||
type: mcu
|
type: mcu
|
||||||
arch: arm
|
arch: arm
|
||||||
@@ -1,11 +1,6 @@
|
|||||||
# Copyright (c) 2023 Felipe Neves
|
# Copyright (c) 2023 Felipe Neves
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
CONFIG_SOC_SERIES_STM32H7X=y
|
|
||||||
CONFIG_SOC_STM32H747XX=y
|
|
||||||
|
|
||||||
CONFIG_BOARD_ARDUINO_OPTA_M4=y
|
|
||||||
|
|
||||||
# enable GPIO
|
# enable GPIO
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
|
|
||||||
5
boards/arduino/arduino_opta/board.yml
Normal file
5
boards/arduino/arduino_opta/board.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
board:
|
||||||
|
name: arduino_opta
|
||||||
|
vendor: arduino
|
||||||
|
socs:
|
||||||
|
- name: stm32h747xx
|
||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -1,7 +1,7 @@
|
|||||||
.. _arduino_opta_m4_board:
|
.. _arduino_opta_m4_board:
|
||||||
|
|
||||||
Arduino OPTA M4-Core
|
Arduino OPTA M4-Core
|
||||||
#######################
|
####################
|
||||||
|
|
||||||
Overview
|
Overview
|
||||||
********
|
********
|
||||||
@@ -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.
|
Other hardware features are not yet supported on Zephyr porting.
|
||||||
|
|
||||||
The default configuration per core can be found in the defconfig files:
|
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
|
Pin Mapping
|
||||||
===========
|
===========
|
||||||
@@ -107,7 +107,7 @@ two cores. This is done in 3 ways:
|
|||||||
Programming and Debugging
|
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.
|
See :ref:`build_an_application` for more information about application builds.
|
||||||
|
|
||||||
Flashing
|
Flashing
|
||||||
@@ -135,7 +135,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.
|
|||||||
|
|
||||||
.. zephyr-app-commands::
|
.. zephyr-app-commands::
|
||||||
:zephyr-app: samples/basic/blinky
|
:zephyr-app: samples/basic/blinky
|
||||||
:board: arduino_opta_m4
|
:board: arduino_opta/stm32h747xx/m4
|
||||||
:goals: build flash
|
:goals: build flash
|
||||||
|
|
||||||
Starting the application on the ARDUINO OPTA M4
|
Starting the application on the ARDUINO OPTA M4
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Copyright (c) 2023 Felipe Neves
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
config BOARD_ARDUINO_OPTA_M4
|
|
||||||
bool "Arduino OPTA Programmable Logic Controller M4 Core"
|
|
||||||
depends on SOC_STM32H747XX
|
|
||||||
select CPU_CORTEX_M4
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Copyright (c) 2023 Felipe Neves
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
if BOARD_ARDUINO_OPTA_M4
|
|
||||||
|
|
||||||
config BOARD
|
|
||||||
default "arduino_opta_m4"
|
|
||||||
|
|
||||||
endif # BOARD_ARDUINO_OPTA_M4
|
|
||||||
Reference in New Issue
Block a user