boards: Convert stm32_min_dev 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-01-29 16:40:57 +01:00
committed by Jamie McCrae
parent d88d3ddcc4
commit 86ab2bd430
20 changed files with 31 additions and 80 deletions

View File

@@ -1,12 +0,0 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
config BOARD_STM32_MIN_DEV_BLUE
bool "STM32 Minimum Development Board (Blue)"
depends on SOC_STM32F103X8
config BOARD_STM32_MIN_DEV_BLACK
bool "STM32 Minimum Development Board (Black)"
depends on SOC_STM32F103X8

View File

@@ -1,12 +0,0 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
if BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK
config BOARD
default "stm32_min_dev_blue" if BOARD_STM32_MIN_DEV_BLUE
default "stm32_min_dev_black" if BOARD_STM32_MIN_DEV_BLACK
endif # BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK

View File

@@ -1,15 +0,0 @@
identifier: stm32_min_dev_blue
name: STM32 Minimum Development Board (Blue)
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
ram: 20
supported:
- i2c
- pwm
- spi
- adc
vendor: st

View File

@@ -1,20 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32F1X=y
CONFIG_SOC_STM32F103X8=y
# enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# enable GPIO
CONFIG_GPIO=y
# enable clock control
CONFIG_CLOCK_CONTROL=y
# enable pin controller
CONFIG_PINCTRL=y

View File

@@ -0,0 +1,7 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
config BOARD_STM32_MIN_DEV
select SOC_STM32F103X8

View File

@@ -0,0 +1,7 @@
board:
name: stm32_min_dev
vendor: others
revision:
format: custom
socs:
- name: stm32f103xb

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -13,7 +13,7 @@ are two variants of the board:
- Blue Pill Board
- Black Pill Board
Zephyr applications can use the stm32_min_dev_blue or stm32_min_dev_black board
Zephyr applications can use the stm32_min_dev@blue or stm32_min_dev@black board
configuration to use these boards.
.. figure:: img/stm32_min_dev.jpg
@@ -154,7 +154,7 @@ variants respectively.
Programming and Debugging
*************************
Applications for the ``stm32_min_dev_(blue|black)`` board configuration can be
Applications for the ``stm32_min_dev@(blue|black)`` board configuration can be
built and flashed in the usual way (see :ref:`build_an_application` and
:ref:`application_run` for more details).
@@ -165,7 +165,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application.
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: stm32_min_dev_blue
:board: stm32_min_dev
:goals: build flash
Debugging
@@ -176,7 +176,7 @@ You can debug an application in the usual way. Here is an example for the
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: stm32_min_dev_blue
:board: stm32_min_dev
:maybe-skip-config:
:goals: debug

View File

@@ -0,0 +1,8 @@
set(LEGEND_REVISIONS "blue" "black")
if (NOT DEFINED BOARD_REVISION)
set(BOARD_REVISION "blue")
else()
if (NOT BOARD_REVISION IN_LIST LEGEND_REVISIONS)
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for Legend. Accepted revisions: ${LEGEND_REVISIONS}")
endif()
endif()

View File

@@ -1,5 +1,5 @@
identifier: stm32_min_dev_black
name: STM32 Minimum Development Board (Black)
identifier: stm32_min_dev
name: STM32 Minimum Development Board
type: mcu
arch: arm
toolchain:
@@ -13,4 +13,3 @@ supported:
- spi
- adc
- gpio
vendor: st

View File

@@ -3,10 +3,6 @@
# Copyright (c) 2019, embedjournal.com
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_STM32F1X=y
CONFIG_SOC_STM32F103X8=y
# enable uart driver
CONFIG_SERIAL=y

View File

@@ -4,9 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include "stm32_min_dev.dtsi"
/ {
model = "STM32 Minimum Development Board (Black)";
compatible = "stm32_min_dev_black", "st,stm32f103c8";

View File

@@ -4,9 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include "stm32_min_dev.dtsi"
/ {
model = "STM32 Minimum Development Board (Blue)";
compatible = "stm32_min_dev_blue", "st,stm32f103c8";

View File

@@ -8,7 +8,7 @@ common:
dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL
harness: osdp
integration_platforms:
- stm32_min_dev_black
- stm32_min_dev
tests:
sample.mgmt.osdp.control_panel:
extra_args: CONF_FILE=prj.conf

View File

@@ -8,7 +8,7 @@ common:
dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL
harness: osdp
integration_platforms:
- stm32_min_dev_black
- stm32_min_dev
tests:
sample.mgmt.osdp.peripheral_device:
extra_args: CONF_FILE=prj.conf

View File

@@ -23,8 +23,7 @@ tests:
- stmf103_mini
- nucleo_f103rb
- olimexino_stm32
- stm32_min_dev_black
- stm32_min_dev_blue
- stm32_min_dev
- usb_kw24d512
- v2m_beetle
- cc1352r1_launchxl