NuMaker-PFM-M2354
Building TF-M
Build TF-M with M2354 by following commands:
$ mkdir build
$ cd build
$ cmake ../ \
-G"Unix Makefiles" \
-DTFM_PLATFORM=nuvoton/m2354 \
-DTFM_TOOLCHAIN_FILE=../toolchain_GNUARM.cmake \
-DTEST_S=ON \
-DTEST_NS=ON \
-DTFM_ISOLATION_LEVEL=2 \
-DCMAKE_BUILD_TYPE=Release \
$ make install
Define TEST_NS=ON or TEST_S=ON for non-secure or secure regression test. CMAKE_BUILD_TYPE could be “Release”, “Debug”, “RelWithDebInfo” or “Minsizerel” TFM_ISOLATION_LEVEL=2 can also be set. Other cmake parameters should not be changed.
Flashing Image with Nuvoton NuLink Tool
NuMaker-PFM-M2354 board supports on board ICE called NuLink. Connect NuLink to PC with USB cable and using NuLink Command Tool to flashing the image.
The commands are as follows:
> NuLink_M2354 -C
> NuLink_M2354 -E ALL
> NuLink_M2354 -W APROM ./build/bin/bl2.bin 0
> NuLink_M2354 -W APROM ./build/bin/tfm_s_ns_signed.bin 0 0x20000
> NuLink_M2354 -W NSCBA 0x70000
Copyright (c) 2021, Nuvoton Technology Corp. All rights reserved.