blob: 6f3da4c44cf56c08c9cd4e8bd8677ac333a3c1c5 [file] [log] [blame]
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +00001##################
2Trusted Firmware M
3##################
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +00004
Minos Galanakisa8f9d102020-07-06 16:09:45 +01005Trusted Firmware-M (TF-M) implements the Secure Processing Environment (SPE)
6for Armv8-M, Armv8.1-M architectures (e.g. the `Cortex-M33`_, `Cortex-M23`_,
Minos Galanakis01da63f2020-09-15 17:38:59 +01007`Cortex-M55`_ processors) or dual-core platforms.It is the platform security
8architecture reference implementation aligning with PSA Certified guidelines,
9enabling chips,Real Time Operating Systems and devices to become PSA Certified.
Minos Galanakisa8f9d102020-07-06 16:09:45 +010010
11TF-M relies on an isolation boundary between the Non-secure Processing
12Environment (NSPE) and the Secure Processing Environment (SPE). It can but is
13not limited to using the `Arm TrustZone technology`_ on Armv8-M and Armv8.1-M
14architectures. In pre-Armv8-M architectures physical core isolation is required.
15
16**Trusted Firmware-M consists of:**
17
18- Secure Boot to authenticate integrity of NSPE and SPE images
19- TF-M Core responsible for controlling the isolation, communication and
20 execution within SPE and with NSPE
21- Crypto, Internal Trusted Storage (ITS), Protected Storage (PS) and
22 Attestation secure services
23
24.. figure:: readme_tfm_v8.png
25 :scale: 65 %
26 :align: center
27
Minos Galanakis01da63f2020-09-15 17:38:59 +010028 FF-M compliant design with TF-M
Minos Galanakisa8f9d102020-07-06 16:09:45 +010029
30Applications and Libraries in the Non-secure Processing Environment can
31utilize these secure services with a standardized set of PSA Functional APIs.
32Applications running on Cortex-M devices can leverage TF-M services to ensure
33secure connection with edge gateways and IoT cloud services. It also protects
34the critical security assets such as sensitive data, keys and certificates on
35the platform. TF-M is supported on several Cortex-M based
36:doc:`Microcontrollers </platform/ext/index>` and Real Time Operating
37Systems (RTOS).
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000038
39Terms ``TFM`` and ``TF-M`` are commonly used in documents and code and both
Minos Galanakisa8f9d102020-07-06 16:09:45 +010040refer to ``Trusted Firmware M.`` :doc:`Glossary </docs/reference/glossary>`
41has the list of terms and abbreviations.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000042
43#######
44License
45#######
Minos Galanakise4094012020-06-12 14:25:34 +010046The software is provided under a BSD-3-Clause :doc:`License </docs/contributing/lic>`.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000047Contributions to this project are accepted under the same license with developer
Minos Galanakise4094012020-06-12 14:25:34 +010048sign-off as described in the :doc:`Contributing Guidelines </docs/contributing/contributing>`.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000049
50This project contains code from other projects as listed below. The code from
Ken Liufc750062020-05-09 15:16:20 +080051external projects is limited to ``app``, ``bl2``, ``lib`` and ``platform``
52folders. The original license text is included in those source files.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000053
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000054- The ``app`` folder contains files imported from CMSIS_5 project and the files
55 have Apache 2.0 license.
56- The ``bl2`` folder contains files imported from MCUBoot project and the files
57 have Apache 2.0 license.
Ken Liufc750062020-05-09 15:16:20 +080058- The ``lib`` folder may contain 3rd party files with diverse licenses.
59- The ``platform`` folder currently contains platforms support imported from
60 the external project and the files may have different licenses.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000061
Soby Mathew6325be52020-06-17 13:58:51 +010062#########################
63Release Notes and Process
64#########################
65The :doc:`Release Cadence and Process </docs/contributing/release_process>` provides
66release cadence and process information.
67
Minos Galanakise4094012020-06-12 14:25:34 +010068The :doc:`Change Log & Release Notes </docs/reference/changelog>` provides details of
Soby Mathewd8efe8f2020-03-16 15:19:05 +000069major features of the release and platforms supported.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000070
71###############
72Getting Started
73###############
74
75************
76Prerequisite
77************
Minos Galanakis01da63f2020-09-15 17:38:59 +010078Trusted Firmware M provides a reference implementation of platform security
79architecture reference implementation aligning with PSA Certified guidelines.
80It is assumed that the reader is familiar with specifications can be found at
Ken Liufc750062020-05-09 15:16:20 +080081`Platform Security Architecture Resources <https://developer.arm.com/architectures/security-architectures/platform-security-architecture>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000082
83The current TF-M implementation specifically targets TrustZone for ARMv8-M so a
84good understanding of the v8-M architecture is also necessary. A good place to
85get started with ARMv8-M is
86`developer.arm.com <https://developer.arm.com/technologies/trustzone>`__.
87
88**********************
89Really getting started
90**********************
Ken Liufc750062020-05-09 15:16:20 +080091Trusted Firmware M source code is available on
Minos Galanakis0f39fa52020-06-08 16:53:53 +010092`git.trustedfirmware.org <https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000093
94To build & run TF-M:
95
Minos Galanakise4094012020-06-12 14:25:34 +010096 - Follow the :doc:`SW requirements guide </docs/getting_started/tfm_sw_requirement>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000097 to set up your environment.
98 - Follow the
Minos Galanakise4094012020-06-12 14:25:34 +010099 :doc:`Build instructions </docs/getting_started/tfm_build_instruction>` to compile
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000100 and build the TF-M source.
Minos Galanakise4094012020-06-12 14:25:34 +0100101 - Follow the :doc:`User guide </docs/getting_started/tfm_user_guide>` for information
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000102 on running the example.
103
104To port TF-M to a another system or OS, follow the
Minos Galanakise4094012020-06-12 14:25:34 +0100105:doc:`OS Integration Guide </docs/getting_started/tfm_integration_guide>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000106
Minos Galanakise4094012020-06-12 14:25:34 +0100107Please also see the :doc:`glossary </docs/reference/glossary>` of terms used in the project.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000108
Minos Galanakise4094012020-06-12 14:25:34 +0100109:doc:`Contributing Guidelines </docs/contributing/contributing>` contains guidance on how to
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000110contribute to this project.
111
112Further documents can be found in the ``docs`` folder.
113
Tamas Banab1c8282020-04-29 10:00:04 +0100114###################
115Platforms supported
116###################
Mark Horvath9a5a9b92019-11-29 15:57:55 +0100117 - Cortex-M55 system:
118
119 - `Fast model FVP_SSE300_MPS2.
120 <https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps>`_
121
Tamas Banab1c8282020-04-29 10:00:04 +0100122 - Cortex-M33 system:
123
Soby Mathew691a6d92020-07-01 07:49:23 +0100124 - `FPGA image loaded on MPS2 board (AN521).
Tamas Banab1c8282020-04-29 10:00:04 +0100125 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
Soby Mathew691a6d92020-07-01 07:49:23 +0100126 - `Fast model FVP_MPS2_AEMv8M (AN521).
Tamas Banab1c8282020-04-29 10:00:04 +0100127 <https://developer.arm.com/products/system-design/fixed-virtual-platforms>`_
128 - `Musca-A test chip board.
129 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-a-test-chip-board>`_
130 - `Musca-B1 test chip board.
131 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-b-test-chip-board>`_
132 - `Musca-S1 test chip board.
133 <https://developer.arm.com/tools-and-software/development-boards/iot-test-chips-and-boards/musca-s1-test-chip-board>`_
Soby Mathew691a6d92020-07-01 07:49:23 +0100134 - `FPGA image loaded on MPS3 board (AN524).
Tamas Banab1c8282020-04-29 10:00:04 +0100135 <https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_
136 - `Arm DesignStart FPGA on AWS Cloud.
137 <https://developer.arm.com/docs/101965/0102/arm-designstart-fpga-on-cloud-arm-ds-getting-started>`_
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100138 - `LPC55S69.
Tamas Banab1c8282020-04-29 10:00:04 +0100139 <https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/lpcxpresso55s69-development-board:LPC55S69-EVK>`_
Ludovic Barre8a77bdd2020-03-26 19:53:07 +0100140 - `NUCLEO L552ZE Q.
141 <https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-l552ze-q.html>`_
142 - `DISCO L562QE.
143 <https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/stm32l562e-dk.html>`_
Øyvind Rønningstadba9aac02020-09-14 15:19:28 +0200144 - `nRF9160 DK (nordic_nrf/nrf9160dk_nrf9160).
145 <https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF9160-DK>`_
146 - `nRF5340 PDK (nordic_nrf/nrf5340pdk_nrf5340_cpuapp).
147 <https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF5340-PDK>`_
Andrzej Głąbekbb4d5c52020-11-03 10:08:48 +0100148 - `nRF5340 DK (nordic_nrf/nrf5340dk_nrf5340_cpuapp).
149 <https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF5340-PDK>`_
Tamas Banab1c8282020-04-29 10:00:04 +0100150
151 - Cortex-M23 system:
152
Soby Mathew691a6d92020-07-01 07:49:23 +0100153 - `FPGA image loaded on MPS2 board (AN519, AN539).
Tamas Banab1c8282020-04-29 10:00:04 +0100154 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
wschang010481a92020-10-16 10:02:06 +0800155 - `M2351.
156 <https://www.nuvoton.com/products/iot-solution/iot-platform/numaker-pfm-m2351/>`_
Tamas Banab1c8282020-04-29 10:00:04 +0100157
158 - Dual Core Cortex-M system:
159
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100160 - `PSoc64.
Tamas Banab1c8282020-04-29 10:00:04 +0100161 <https://www.cypress.com/documentation/product-brochures/cypress-psoc-64-secure-microcontrollers>`_
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000162
Mark Horvath8dcc3832020-08-07 15:10:52 +0200163 - Secure Enclave system:
164
Gabor Abonyi944e9c22020-10-01 16:18:41 +0200165 - :doc:`Musca-B1 Secure Enclave. </platform/ext/target/musca_b1/secure_enclave/readme>`
Mark Horvath8dcc3832020-08-07 15:10:52 +0200166
Soby Mathew175efe12020-07-03 14:33:11 +0100167The document :doc:`Platform Deprecation and Removal </docs/contributing/platform_deprecation>`
168lists the deprecated platforms planned to be removed from upstream.
169
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000170####################
171Feedback and support
172####################
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000173For this release, feedback is requested via email to
174`tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000175
176###############
177Version history
178###############
Mate Toth-Pal955235a2020-06-15 13:48:34 +0200179+-------------+--------------+--------------------+-------------------+
180| Version | Date | Description | PSA-arch tag/hash |
181+=============+==============+====================+===================+
182| v1.0-beta | 2019-02-15 | 1.0-beta release | - |
183+-------------+--------------+--------------------+-------------------+
184| v1.0-RC1 | 2019-05-31 | 1.0-RC1 release | v19.06_API0.9 |
185+-------------+--------------+--------------------+-------------------+
186| v1.0-RC2 | 2019-10-09 | 1.0-RC2 release | v19.06_API0.9 |
187+-------------+--------------+--------------------+-------------------+
188| v1.0-RC3 | 2019-11-29 | 1.0-RC3 release | v19.06_API0.9 |
189+-------------+--------------+--------------------+-------------------+
190| v1.0 | 2020-03-27 | 1.0 release | v20.03_API1.0 |
191+-------------+--------------+--------------------+-------------------+
192| v1.1 | 2020-07-15 | 1.1 release | 1f960947 |
Maulik Patelc68114f2020-12-29 10:29:10 +0000193+-------------+--------------+--------------------+-------------------+
Minos Galanakisc9a81db2020-11-16 20:22:11 +0000194| v1.2.0 | 2020-11-25 | 1.2.0 release | 90c8e680 |
Mate Toth-Pal955235a2020-06-15 13:48:34 +0200195+-------------+--------------+--------------------+-------------------+
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000196
Minos Galanakis3568bea2020-11-16 20:15:48 +0000197Please refer to
198:ref:`docs/contributing/release_process:Release Version Scheme` for interpreting
199version numbers.
200
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100201.. _Cortex-M33: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m33
202.. _Cortex-M23: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m23
203.. _Cortex-M55: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m55
204.. _PSA Certified: https://www.psacertified.org/about/developing-psa-certified/
205.. _Arm TrustZone technology: https://developer.arm.com/ip-products/security-ip/trustzone/trustzone-for-cortex-m
206
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000207--------------
208
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000209*Copyright (c) 2017-2020, Arm Limited. All rights reserved.*