FRDM-MCXW70

The NXP FRDM-MCXW70 is a development board for the MCXW70 wireless MCU, which provides an Arm Cortex-M33 TrustZone application core.

MCU device and part on board is shown below:

  • Device: MCXW70AC

  • Boardname: frdmmcxw70

1. Building TF-M

Prepare the tf-m-tests repository inside the TF-M base folder.

cd <TF-M base folder>
git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git

This board does not support the secondary bootloader (BL2) yet, so TF-M is built with -DBL2=OFF.

1.1 Building TF-M demo

To build S and NS application image, run the following commands:

cd <TF-M base folder>/tf-m-tests/tests_reg
cmake -S spe -B build_spe -DTFM_PLATFORM=nxp/frdmmcxw70 \
      -DCONFIG_TFM_SOURCE_PATH=<TF-M base folder>/trusted-firmware-m \
      -G "Unix Makefiles" -DBL2=OFF
cmake --build build_spe -- install
cmake -S . -B build_test -G"Unix Makefiles" \
      -DCONFIG_SPE_PATH=<TF-M base folder>/tf-m-tests/tests_reg/build_spe/api_ns
cmake --build build_test

1.2 Building TF-M regression tests

To build the S and NS regression tests, run the following commands:

  • Profile Medium:

cd <TF-M base folder>/tf-m-tests/tests_reg
cmake -S spe -B build_spe -DTFM_PLATFORM=nxp/frdmmcxw70 \
      -DCONFIG_TFM_SOURCE_PATH=<TF-M base folder>/trusted-firmware-m \
      -G "Unix Makefiles" -DTFM_PROFILE=profile_medium \
      -DTEST_S=ON -DTEST_NS=ON -DBL2=OFF
cmake --build build_spe -- install
cmake -S . -B build_test -G"Unix Makefiles" \
      -DCONFIG_SPE_PATH=<TF-M base folder>/tf-m-tests/tests_reg/build_spe/api_ns
cmake --build build_test

Note

Secure Storage uses RAM (PLATFORM_RAM_FS=ON) on this board, so stored keys and data do not survive a reset. The Protected Storage and Initial Attestation partitions are disabled in config.cmake.