blob: b978f744a208b682e8174524973b6f7cac8f20ba [file] [log] [blame]
WSChang0bbb7fdf2021-01-12 11:38:19 +08001NuMaker-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 \
WSChang0a3325dd2022-04-21 19:57:57 +080017 -DMCUBOOT_FIH_PROFILE=MEDIUM \
WSChang0bbb7fdf2021-01-12 11:38:19 +080018 -DTEST_S=ON \
19 -DTEST_NS=ON \
WSChang0bbb7fdf2021-01-12 11:38:19 +080020 -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"
Kevin Peng23a583c2021-09-08 22:33:33 +080026TFM_ISOLATION_LEVEL=2 can also be set.
WSChang0bbb7fdf2021-01-12 11:38:19 +080027Other 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
WSChang0a3325dd2022-04-21 19:57:57 +080049*Copyright (c) 2021-2022, Nuvoton Technology Corp. All rights reserved.*