boards: Convert b_u585i_iot02a 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-08 11:55:03 +01:00
committed by Carles Cufi
parent d716ca1a10
commit 902fceb173
18 changed files with 24 additions and 30 deletions

View File

@@ -1,8 +0,0 @@
# B_U585I_IOT02A discovery kit configuration
# Copyright (c) 2021 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config BOARD_B_U585I_IOT02A
bool "STM32U585I IOT Discovery kit"
depends on SOC_STM32U585XX

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2021 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config BOARD_B_U585I_IOT02A
select SOC_STM32U585XX

View File

@@ -5,9 +5,6 @@
if BOARD_B_U585I_IOT02A if BOARD_B_U585I_IOT02A
config BOARD
default "b_u585i_iot02a"
config SPI_STM32_INTERRUPT config SPI_STM32_INTERRUPT
default y default y
depends on SPI depends on SPI

View File

@@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32U5X=y
CONFIG_SOC_STM32U585XX=y
# enable uart driver # enable uart driver
CONFIG_SERIAL=y CONFIG_SERIAL=y

View File

@@ -1,4 +1,4 @@
identifier: b_u585i_iot02a_ns identifier: b_u585i_iot02a/stm32u585xx/ns
name: ST B_U585I_IOT02A Discovery kit non secure target name: ST B_U585I_IOT02A Discovery kit non secure target
type: mcu type: mcu
arch: arm arch: arm

View File

@@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32U5X=y
CONFIG_SOC_STM32U585XX=y
# enable uart driver # enable uart driver
CONFIG_SERIAL=y CONFIG_SERIAL=y

View File

@@ -0,0 +1,7 @@
board:
name: b_u585i_iot02a
vendor: st
socs:
- name: stm32u585xx
variants:
- name: ns

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -199,8 +199,7 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file: The default configuration can be found in the defconfig file:
:zephyr_file:`boards/st/b_u585i_iot02a/b_u585i_iot02a_defconfig`
``boards/arm/b_u585i_iot02a/b_u585i_iot02a_defconfig``
Zephyr board options Zephyr board options
==================== ====================
@@ -210,20 +209,20 @@ for building for both Secure and Non-Secure firmware.
The BOARD options are summarized below: The BOARD options are summarized below:
+----------------------+-----------------------------------------------+ +-------------------------------+-------------------------------------------+
| BOARD | Description | | BOARD | Description |
+======================+===============================================+ +===============================+===========================================+
| b_u585i_iot02a | For building Secure (or Secure-only) firmware | | b_u585i_iot02a | For building Trust Zone Disabled firmware |
+----------------------+-----------------------------------------------+ +-------------------------------+-------------------------------------------+
| b_u585i_iot02a_ns | For building Non-Secure firmware | | b_u585i_iot02a/stm32u585xx/ns | For building Non-Secure firmware |
+----------------------+-----------------------------------------------+ +-------------------------------+-------------------------------------------+
Here are the instructions to build Zephyr with a non-secure configuration, Here are the instructions to build Zephyr with a non-secure configuration,
using `tfm_ipc_` sample: using `tfm_ipc_` sample:
.. code-block:: bash .. code-block:: bash
$ west build -b b_u585i_iot02a_ns samples/tfm_integration/tfm_ipc/ $ west build -b b_u585i_iot02a/stm32u585xx/ns samples/tfm_integration/tfm_ipc/
Once done, before flashing, you need to first run a generated script that Once done, before flashing, you need to first run a generated script that
will set platform option bytes config and erase platform (among others, will set platform option bytes config and erase platform (among others,
@@ -342,11 +341,11 @@ Building a secure/non-secure with Arm |reg| TrustZone |reg|
The TF-M applications can be run on this board, thanks to its Arm |reg| TrustZone |reg| The TF-M applications can be run on this board, thanks to its Arm |reg| TrustZone |reg|
support. support.
In TF-M configuration, Zephyr is run on the non-secure domain. A non-secure image In TF-M configuration, Zephyr is run on the non-secure domain. A non-secure image
can be generated using ``b_u585i_iot02a_ns`` as build target. can be generated using ``b_u585i_iot02a/stm32u585xx/ns`` as build target.
.. code-block:: bash .. code-block:: bash
$ west build -b b_u585i_iot02a_ns path/to/source/directory $ west build -b b_u585i_iot02a/stm32u585xx/ns path/to/source/directory
Note: When building the ``*_ns`` image with TF-M, ``build/tfm/api_ns/postbuild.sh`` bash script Note: When building the ``*_ns`` image with TF-M, ``build/tfm/api_ns/postbuild.sh`` bash script
is run automatically in a post-build step to make some required flash layout changes. is run automatically in a post-build step to make some required flash layout changes.