blob: 7e214c2ef66a439fd0d0d82ff24160f3fce8795d [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`_,
7`Cortex-M55`_ processors) or dual-core platforms.
8It is the Platform Security Architecture (PSA) reference implementation
9aligning with `PSA Certified`_ guidelines, enabling chips,
10Real Time Operating Systems and devices to become PSA Certified.
11
12TF-M relies on an isolation boundary between the Non-secure Processing
13Environment (NSPE) and the Secure Processing Environment (SPE). It can but is
14not limited to using the `Arm TrustZone technology`_ on Armv8-M and Armv8.1-M
15architectures. In pre-Armv8-M architectures physical core isolation is required.
16
17**Trusted Firmware-M consists of:**
18
19- Secure Boot to authenticate integrity of NSPE and SPE images
20- TF-M Core responsible for controlling the isolation, communication and
21 execution within SPE and with NSPE
22- Crypto, Internal Trusted Storage (ITS), Protected Storage (PS) and
23 Attestation secure services
24
25.. figure:: readme_tfm_v8.png
26 :scale: 65 %
27 :align: center
28
29 PSA FF compiant design with TF-M
30
31Applications and Libraries in the Non-secure Processing Environment can
32utilize these secure services with a standardized set of PSA Functional APIs.
33Applications running on Cortex-M devices can leverage TF-M services to ensure
34secure connection with edge gateways and IoT cloud services. It also protects
35the critical security assets such as sensitive data, keys and certificates on
36the platform. TF-M is supported on several Cortex-M based
37:doc:`Microcontrollers </platform/ext/index>` and Real Time Operating
38Systems (RTOS).
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000039
40Terms ``TFM`` and ``TF-M`` are commonly used in documents and code and both
Minos Galanakisa8f9d102020-07-06 16:09:45 +010041refer to ``Trusted Firmware M.`` :doc:`Glossary </docs/reference/glossary>`
42has the list of terms and abbreviations.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000043
44#######
45License
46#######
Minos Galanakise4094012020-06-12 14:25:34 +010047The software is provided under a BSD-3-Clause :doc:`License </docs/contributing/lic>`.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000048Contributions to this project are accepted under the same license with developer
Minos Galanakise4094012020-06-12 14:25:34 +010049sign-off as described in the :doc:`Contributing Guidelines </docs/contributing/contributing>`.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000050
51This project contains code from other projects as listed below. The code from
Ken Liufc750062020-05-09 15:16:20 +080052external projects is limited to ``app``, ``bl2``, ``lib`` and ``platform``
53folders. The original license text is included in those source files.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000054
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000055- The ``app`` folder contains files imported from CMSIS_5 project and the files
56 have Apache 2.0 license.
57- The ``bl2`` folder contains files imported from MCUBoot project and the files
58 have Apache 2.0 license.
Ken Liufc750062020-05-09 15:16:20 +080059- The ``lib`` folder may contain 3rd party files with diverse licenses.
60- The ``platform`` folder currently contains platforms support imported from
61 the external project and the files may have different licenses.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000062
63.. Note::
Ken Liufc750062020-05-09 15:16:20 +080064 Any folder that contains or directly imports 3rd party code is kept in a
65 specific subfolder named ``ext`` so that it can be isolated if required.
66 The 'ext' folder can be seen in the folders above mentioned.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000067
Soby Mathew6325be52020-06-17 13:58:51 +010068#########################
69Release Notes and Process
70#########################
71The :doc:`Release Cadence and Process </docs/contributing/release_process>` provides
72release cadence and process information.
73
Minos Galanakise4094012020-06-12 14:25:34 +010074The :doc:`Change Log & Release Notes </docs/reference/changelog>` provides details of
Soby Mathewd8efe8f2020-03-16 15:19:05 +000075major features of the release and platforms supported.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000076
77###############
78Getting Started
79###############
80
81************
82Prerequisite
83************
84Trusted Firmware M provides a reference implementation of PSA specifications.
85It is assumed that the reader is familiar with PSA concepts and terms. PSA
Ken Liufc750062020-05-09 15:16:20 +080086specifications can be found at
87`Platform Security Architecture Resources <https://developer.arm.com/architectures/security-architectures/platform-security-architecture>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000088
89The current TF-M implementation specifically targets TrustZone for ARMv8-M so a
90good understanding of the v8-M architecture is also necessary. A good place to
91get started with ARMv8-M is
92`developer.arm.com <https://developer.arm.com/technologies/trustzone>`__.
93
94**********************
95Really getting started
96**********************
Ken Liufc750062020-05-09 15:16:20 +080097Trusted Firmware M source code is available on
Minos Galanakis0f39fa52020-06-08 16:53:53 +010098`git.trustedfirmware.org <https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000099
100To build & run TF-M:
101
Minos Galanakise4094012020-06-12 14:25:34 +0100102 - Follow the :doc:`SW requirements guide </docs/getting_started/tfm_sw_requirement>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000103 to set up your environment.
104 - Follow the
Minos Galanakise4094012020-06-12 14:25:34 +0100105 :doc:`Build instructions </docs/getting_started/tfm_build_instruction>` to compile
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000106 and build the TF-M source.
Minos Galanakise4094012020-06-12 14:25:34 +0100107 - Follow the :doc:`User guide </docs/getting_started/tfm_user_guide>` for information
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000108 on running the example.
109
110To port TF-M to a another system or OS, follow the
Minos Galanakise4094012020-06-12 14:25:34 +0100111:doc:`OS Integration Guide </docs/getting_started/tfm_integration_guide>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000112
Minos Galanakise4094012020-06-12 14:25:34 +0100113Please also see the :doc:`glossary </docs/reference/glossary>` of terms used in the project.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000114
Minos Galanakise4094012020-06-12 14:25:34 +0100115:doc:`Contributing Guidelines </docs/contributing/contributing>` contains guidance on how to
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000116contribute to this project.
117
118Further documents can be found in the ``docs`` folder.
119
Tamas Banab1c8282020-04-29 10:00:04 +0100120###################
121Platforms supported
122###################
Mark Horvath9a5a9b92019-11-29 15:57:55 +0100123 - Cortex-M55 system:
124
125 - `Fast model FVP_SSE300_MPS2.
126 <https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps>`_
127
Tamas Banab1c8282020-04-29 10:00:04 +0100128 - Cortex-M33 system:
129
130 - `FPGA image loaded on MPS2 board.
131 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
132 - `Fast model FVP_MPS2_AEMv8M.
133 <https://developer.arm.com/products/system-design/fixed-virtual-platforms>`_
134 - `Musca-A test chip board.
135 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-a-test-chip-board>`_
136 - `Musca-B1 test chip board.
137 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-b-test-chip-board>`_
138 - `Musca-S1 test chip board.
139 <https://developer.arm.com/tools-and-software/development-boards/iot-test-chips-and-boards/musca-s1-test-chip-board>`_
140 - `FPGA image loaded on MPS3 board.
141 <https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_
142 - `Arm DesignStart FPGA on AWS Cloud.
143 <https://developer.arm.com/docs/101965/0102/arm-designstart-fpga-on-cloud-arm-ds-getting-started>`_
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100144 - `LPC55S69.
Tamas Banab1c8282020-04-29 10:00:04 +0100145 <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 +0100146 - `NUCLEO L552ZE Q.
147 <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>`_
148 - `DISCO L562QE.
149 <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>`_
Tamas Banab1c8282020-04-29 10:00:04 +0100150
151 - Cortex-M23 system:
152
153 - `FPGA image loaded on MPS2 board.
154 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
155
156 - Dual Core Cortex-M system:
157
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100158 - `PSoc64.
Tamas Banab1c8282020-04-29 10:00:04 +0100159 <https://www.cypress.com/documentation/product-brochures/cypress-psoc-64-secure-microcontrollers>`_
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000160
161####################
162Feedback and support
163####################
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000164For this release, feedback is requested via email to
165`tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000166
167###############
168Version history
169###############
Mate Toth-Pal955235a2020-06-15 13:48:34 +0200170+-------------+--------------+--------------------+-------------------+
171| Version | Date | Description | PSA-arch tag/hash |
172+=============+==============+====================+===================+
173| v1.0-beta | 2019-02-15 | 1.0-beta release | - |
174+-------------+--------------+--------------------+-------------------+
175| v1.0-RC1 | 2019-05-31 | 1.0-RC1 release | v19.06_API0.9 |
176+-------------+--------------+--------------------+-------------------+
177| v1.0-RC2 | 2019-10-09 | 1.0-RC2 release | v19.06_API0.9 |
178+-------------+--------------+--------------------+-------------------+
179| v1.0-RC3 | 2019-11-29 | 1.0-RC3 release | v19.06_API0.9 |
180+-------------+--------------+--------------------+-------------------+
181| v1.0 | 2020-03-27 | 1.0 release | v20.03_API1.0 |
182+-------------+--------------+--------------------+-------------------+
183| v1.1 | 2020-07-15 | 1.1 release | 1f960947 |
184+-------------+--------------+--------------------+-------------------+
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000185
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100186.. _Cortex-M33: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m33
187.. _Cortex-M23: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m23
188.. _Cortex-M55: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m55
189.. _PSA Certified: https://www.psacertified.org/about/developing-psa-certified/
190.. _Arm TrustZone technology: https://developer.arm.com/ip-products/security-ip/trustzone/trustzone-for-cortex-m
191
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000192--------------
193
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000194*Copyright (c) 2017-2020, Arm Limited. All rights reserved.*