Skip to content

Commit 55e7cc6

Browse files
nordicjmmmahadevan108
authored andcommitted
doc: Fix renamed ARM MPS* board targets
Fixes some board target names that have changed or were not updated for hwmv2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent c139825 commit 55e7cc6

File tree

6 files changed

+45
-45
lines changed

6 files changed

+45
-45
lines changed

doc/build/sysbuild/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,16 +499,16 @@ In sysbuild and Zephyr CMake build system a board may refer to:
499499
* A specific SoC on a physical board with multiple SoCs, such as
500500
:ref:`nrf9160dk_nrf9160` and :ref:`nrf9160dk_nrf52840`.
501501

502-
If your main application, for example, is built for ``mps2_an521``, and your
503-
helper application must target the ``mps2_an521_remote`` board (cpu1), add
502+
If your main application, for example, is built for ``mps2/an521/cpu0``, and your
503+
helper application must target the ``mps2/an521/cpu1`` board target, add
504504
a CMake function call that is structured as follows:
505505

506506
.. code-block:: cmake
507507
508508
ExternalZephyrProject_Add(
509509
APPLICATION my_sample
510510
SOURCE_DIR <path-to>/my_sample
511-
BOARD mps2_an521_remote
511+
BOARD mps2/an521/cpu1
512512
)
513513
514514
This could be useful, for example, if your main application requires another

doc/hardware/arch/arm_cortex_m.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -651,29 +651,29 @@ The table below lists the QEMU platform targets defined in Zephyr
651651
along with the corresponding Cortex-M implementation variant and the peripherals
652652
these targets emulate.
653653

654-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
655-
| | **QEMU target** |
656-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
657-
| Architecture variant | Arm v6-M | Arm v7-M | Arm v8-M | Arm v8.1-M |
658-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
659-
| | **qemu_cortex_m0** | **qemu_cortex_m3** | **mps2_an385** | **mps2_an521** | **mps3_an547** |
660-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
661-
| **Emulated features** | |
662-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
663-
| NVIC | Y | Y | Y | Y | Y |
664-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
665-
| BASEPRI | N | Y | Y | Y | Y |
666-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
667-
| SysTick | N | Y | Y | Y | Y |
668-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
669-
| MPU | N | N | Y | Y | Y |
670-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
671-
| FPU | N | N | N | Y | N |
672-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
673-
| SPLIM | N | N | N | Y | Y |
674-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
675-
| TrustZone-M | N | N | N | Y | N |
676-
+---------------------------------+--------------------+--------------------+----------------+-----------------+----------------+
654+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
655+
| | **QEMU target** |
656+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
657+
| Architecture variant | Arm v6-M | Arm v7-M | Arm v8-M | Arm v8.1-M |
658+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
659+
| | **qemu_cortex_m0** | **qemu_cortex_m3** | **mps2/an385** | **mps2/an521/cpu0** | **mps3/corstone300/an547** |
660+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
661+
| **Emulated features** | |
662+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
663+
| NVIC | Y | Y | Y | Y | Y |
664+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
665+
| BASEPRI | N | Y | Y | Y | Y |
666+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
667+
| SysTick | N | Y | Y | Y | Y |
668+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
669+
| MPU | N | N | Y | Y | Y |
670+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
671+
| FPU | N | N | N | Y | N |
672+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
673+
| SPLIM | N | N | N | Y | Y |
674+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
675+
| TrustZone-M | N | N | N | Y | N |
676+
+---------------------------------+--------------------+--------------------+----------------+----------------------+----------------------------+
677677

678678
Maintainers & Collaborators
679679
***************************

doc/services/tfm/build.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps required:
1111

1212
.. code-block:: bash
1313
14-
$ west build -p auto -b mps2_an521_ns samples/tfm_integration/psa_protected_storage/ -t run
14+
$ west build -p auto -b mps2/an521/cpu0/ns samples/tfm_integration/psa_protected_storage/ -t run
1515
1616
The outputs and certain key steps in this build process are described here,
1717
however, since you will need to understand and interact with the outputs, and
@@ -146,29 +146,29 @@ Use the ``tfm_ram_report`` to get the RAM report for TF-M secure firmware (tfm_s
146146
.. zephyr-app-commands::
147147
:tool: all
148148
:zephyr-app: samples/hello_world
149-
:board: mps2_an521_ns
149+
:board: mps2/an521/cpu0/ns
150150
:goals: tfm_ram_report
151151

152152
Use the ``tfm_rom_report`` to get the ROM report for TF-M secure firmware (tfm_s).
153153

154154
.. zephyr-app-commands::
155155
:tool: all
156156
:zephyr-app: samples/hello_world
157-
:board: mps2_an521_ns
157+
:board: mps2/an521/cpu0/ns
158158
:goals: tfm_rom_report
159159

160160
Use the ``bl2_ram_report`` to get the RAM report for TF-M MCUboot, if enabled.
161161

162162
.. zephyr-app-commands::
163163
:tool: all
164164
:zephyr-app: samples/hello_world
165-
:board: mps2_an521_ns
165+
:board: mps2/an521/cpu0/ns
166166
:goals: bl2_ram_report
167167

168168
Use the ``bl2_rom_report`` to get the ROM report for TF-M MCUboot, if enabled.
169169

170170
.. zephyr-app-commands::
171171
:tool: all
172172
:zephyr-app: samples/hello_world
173-
:board: mps2_an521_ns
173+
:board: mps2/an521/cpu0/ns
174174
:goals: bl2_rom_report

doc/services/tfm/integration.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,23 @@ processing environment. :kconfig:option:`CONFIG_TFM_BOARD` must also be set via
2323
to the board name that TF-M expects for this target, so that it knows which
2424
target to build for the secure processing environment.
2525

26-
Example: ``mps2_an521_ns``
27-
==========================
26+
Example: ``mps2/an521/cpu0/ns``
27+
===============================
2828

29-
The ``mps2_an521`` target is a dual-core Arm Cortex-M33 evaluation board that,
30-
when using the default board variant, would generate a secure Zephyr binary.
29+
The ``mps2/an521/cpu0`` board target is a dual-core Arm Cortex-M33 evaluation board that generates
30+
a secure Zephyr binary.
3131

32-
The optional ``mps2_an521_ns`` target, however, sets these additional
32+
The optional ``mps2/an521/cpu0/ns`` board target, however, sets these additional
3333
kconfig flags that indicate that Zephyr should be built as a
3434
non-secure image, linked with TF-M as an external project, and optionally the
3535
secure bootloader:
3636

3737
* :kconfig:option:`CONFIG_TRUSTED_EXECUTION_NONSECURE` ``y``
3838
* :kconfig:option:`CONFIG_ARM_TRUSTZONE_M` ``y``
3939

40-
Comparing the ``mps2_an521.dts`` and ``mps2_an521_ns.dts`` files, we can see
41-
that the ``_ns`` version defines offsets in flash and SRAM memory, which leave
40+
Comparing the :zephyr_file:`boards/arm/mps2/mps2_an521_cpu0.dts` and
41+
:zephyr_file:`boards/arm/mps2/mps2_an521_cpu0_ns.dts` files,
42+
we can see that the ``ns`` version defines offsets in flash and SRAM memory, which leave
4243
the required space for TF-M and the secure bootloader:
4344

4445
::

doc/services/tfm/overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ Non-Secure Processing Environment
261261
Zephyr is used for the NSPE, using a board that is supported by TF-M where the
262262
:kconfig:option:`CONFIG_BUILD_WITH_TFM` flag has been enabled.
263263

264-
Generally, you simply need to select the ``*_ns`` variant of a valid target
265-
(for example ``mps2_an521_ns``), which will configure your Zephyr application
264+
Generally, you simply need to select the ``*/ns`` board target of a valid board
265+
(for example ``mps2/an521/cpu0/ns``), which will configure your Zephyr application
266266
to run in the NSPE, correctly build and link it with the TF-M secure images,
267267
sign the secure and non-secure images, and merge the three binaries into a
268268
single ``tfm_merged.hex`` file. The :ref:`west flash <west-flashing>` command

doc/services/tfm/requirements.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following are some of the boards that can be used with TF-M:
99
* - Board
1010
- NSPE board name
1111
* - :ref:`mps2_an521_board`
12-
- ``mps2_an521_ns`` (qemu supported)
12+
- ``mps2/an521/cpu0/ns`` (qemu supported)
1313
* - :ref:`mps3_board`
1414
- ``mps3/corstone300/an547/ns`` (qemu supported)
1515
* - :zephyr:board:`bl5340_dvk`
@@ -27,12 +27,11 @@ The following are some of the boards that can be used with TF-M:
2727
* - :zephyr:board:`stm32l562e_dk`
2828
- ``stm32l562e_dk/stm32l562xx/ns``
2929
* - :ref:`v2m_musca_b1_board`
30-
- ``v2m_musca_b1_ns``
30+
- ``v2m_musca_b1/musca_b1/ns``
3131
* - :ref:`v2m_musca_s1_board`
32-
- ``v2m_musca_s1_ns``
32+
- ``v2m_musca_s1/musca_s1/ns``
3333

34-
You can run ``west boards -n _ns$`` to search for non-secure variants
35-
of different board targets. To make sure TF-M is supported for a board
34+
To make sure TF-M is supported for a board
3635
in its output, check that :kconfig:option:`CONFIG_TRUSTED_EXECUTION_NONSECURE`
3736
is set to ``y`` in that board's default configuration.
3837

0 commit comments

Comments
 (0)