1NuMaker-PFM-M2354 2================== 3 4Building TF-M 5------------- 6 7Build TF-M with M2354 by following commands: 8 9.. code:: bash 10 11 $ mkdir build 12 $ cd build 13 $ cmake ../ \ 14 -G"Unix Makefiles" \ 15 -DTFM_PLATFORM=nuvoton/m2354 \ 16 -DTFM_TOOLCHAIN_FILE=../toolchain_GNUARM.cmake \ 17 -DMCUBOOT_FIH_PROFILE=MEDIUM \ 18 -DTEST_S=ON \ 19 -DTEST_NS=ON \ 20 -DTFM_ISOLATION_LEVEL=2 \ 21 -DCMAKE_BUILD_TYPE=Release \ 22 $ make install 23 24Define TEST_NS=ON or TEST_S=ON for non-secure or secure regression test. 25CMAKE_BUILD_TYPE could be "Release", "Debug", "RelWithDebInfo" or "Minsizerel" 26TFM_ISOLATION_LEVEL=2 can also be set. 27Other cmake parameters should not be changed. 28 29Flashing Image with Nuvoton NuLink Tool 30--------------------------------------- 31 32NuMaker-PFM-M2354 board supports on board ICE called NuLink. 33Connect NuLink to PC with USB cable and using 34`NuLink Command Tool <https://github.com/OpenNuvoton/Nuvoton_Tools>`__ 35to flashing the image. 36 37The commands are as follows: 38 39.. code:: doscon 40 41 > NuLink_M2354 -C 42 > NuLink_M2354 -E ALL 43 > NuLink_M2354 -W APROM ./build/bin/bl2.bin 0 44 > NuLink_M2354 -W APROM ./build/bin/tfm_s_ns_signed.bin 0 0x20000 45 > NuLink_M2354 -W NSCBA 0x70000 46 47-------------- 48 49*Copyright (c) 2021-2022, Nuvoton Technology Corp. All rights reserved.* 50