blob: 213af41a681d7162e81e587bbd7601d1d25c0fda [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
Soby Mathew6325be52020-06-17 13:58:51 +010063#########################
64Release Notes and Process
65#########################
66The :doc:`Release Cadence and Process </docs/contributing/release_process>` provides
67release cadence and process information.
68
Minos Galanakise4094012020-06-12 14:25:34 +010069The :doc:`Change Log & Release Notes </docs/reference/changelog>` provides details of
Soby Mathewd8efe8f2020-03-16 15:19:05 +000070major features of the release and platforms supported.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000071
72###############
73Getting Started
74###############
75
76************
77Prerequisite
78************
79Trusted Firmware M provides a reference implementation of PSA specifications.
80It is assumed that the reader is familiar with PSA concepts and terms. PSA
Ken Liufc750062020-05-09 15:16:20 +080081specifications can be found at
82`Platform Security Architecture Resources <https://developer.arm.com/architectures/security-architectures/platform-security-architecture>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000083
84The current TF-M implementation specifically targets TrustZone for ARMv8-M so a
85good understanding of the v8-M architecture is also necessary. A good place to
86get started with ARMv8-M is
87`developer.arm.com <https://developer.arm.com/technologies/trustzone>`__.
88
89**********************
90Really getting started
91**********************
Ken Liufc750062020-05-09 15:16:20 +080092Trusted Firmware M source code is available on
Minos Galanakis0f39fa52020-06-08 16:53:53 +010093`git.trustedfirmware.org <https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000094
95To build & run TF-M:
96
Minos Galanakise4094012020-06-12 14:25:34 +010097 - Follow the :doc:`SW requirements guide </docs/getting_started/tfm_sw_requirement>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +000098 to set up your environment.
99 - Follow the
Minos Galanakise4094012020-06-12 14:25:34 +0100100 :doc:`Build instructions </docs/getting_started/tfm_build_instruction>` to compile
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000101 and build the TF-M source.
Minos Galanakise4094012020-06-12 14:25:34 +0100102 - Follow the :doc:`User guide </docs/getting_started/tfm_user_guide>` for information
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000103 on running the example.
104
105To port TF-M to a another system or OS, follow the
Minos Galanakise4094012020-06-12 14:25:34 +0100106:doc:`OS Integration Guide </docs/getting_started/tfm_integration_guide>`
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000107
Minos Galanakise4094012020-06-12 14:25:34 +0100108Please also see the :doc:`glossary </docs/reference/glossary>` of terms used in the project.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000109
Minos Galanakise4094012020-06-12 14:25:34 +0100110:doc:`Contributing Guidelines </docs/contributing/contributing>` contains guidance on how to
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000111contribute to this project.
112
113Further documents can be found in the ``docs`` folder.
114
Tamas Banab1c8282020-04-29 10:00:04 +0100115###################
116Platforms supported
117###################
Mark Horvath9a5a9b92019-11-29 15:57:55 +0100118 - Cortex-M55 system:
119
120 - `Fast model FVP_SSE300_MPS2.
121 <https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps>`_
122
Tamas Banab1c8282020-04-29 10:00:04 +0100123 - Cortex-M33 system:
124
Soby Mathew691a6d92020-07-01 07:49:23 +0100125 - `FPGA image loaded on MPS2 board (AN521).
Tamas Banab1c8282020-04-29 10:00:04 +0100126 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
Soby Mathew691a6d92020-07-01 07:49:23 +0100127 - `Fast model FVP_MPS2_AEMv8M (AN521).
Tamas Banab1c8282020-04-29 10:00:04 +0100128 <https://developer.arm.com/products/system-design/fixed-virtual-platforms>`_
129 - `Musca-A test chip board.
130 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-a-test-chip-board>`_
131 - `Musca-B1 test chip board.
132 <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-b-test-chip-board>`_
133 - `Musca-S1 test chip board.
134 <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 +0100135 - `FPGA image loaded on MPS3 board (AN524).
Tamas Banab1c8282020-04-29 10:00:04 +0100136 <https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_
137 - `Arm DesignStart FPGA on AWS Cloud.
138 <https://developer.arm.com/docs/101965/0102/arm-designstart-fpga-on-cloud-arm-ds-getting-started>`_
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100139 - `LPC55S69.
Tamas Banab1c8282020-04-29 10:00:04 +0100140 <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 +0100141 - `NUCLEO L552ZE Q.
142 <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>`_
143 - `DISCO L562QE.
144 <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 +0100145
146 - Cortex-M23 system:
147
Soby Mathew691a6d92020-07-01 07:49:23 +0100148 - `FPGA image loaded on MPS2 board (AN519, AN539).
Tamas Banab1c8282020-04-29 10:00:04 +0100149 <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_
150
151 - Dual Core Cortex-M system:
152
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100153 - `PSoc64.
Tamas Banab1c8282020-04-29 10:00:04 +0100154 <https://www.cypress.com/documentation/product-brochures/cypress-psoc-64-secure-microcontrollers>`_
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000155
Soby Mathew175efe12020-07-03 14:33:11 +0100156The document :doc:`Platform Deprecation and Removal </docs/contributing/platform_deprecation>`
157lists the deprecated platforms planned to be removed from upstream.
158
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000159####################
160Feedback and support
161####################
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000162For this release, feedback is requested via email to
163`tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>`__.
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000164
165###############
166Version history
167###############
Mate Toth-Pal955235a2020-06-15 13:48:34 +0200168+-------------+--------------+--------------------+-------------------+
169| Version | Date | Description | PSA-arch tag/hash |
170+=============+==============+====================+===================+
171| v1.0-beta | 2019-02-15 | 1.0-beta release | - |
172+-------------+--------------+--------------------+-------------------+
173| v1.0-RC1 | 2019-05-31 | 1.0-RC1 release | v19.06_API0.9 |
174+-------------+--------------+--------------------+-------------------+
175| v1.0-RC2 | 2019-10-09 | 1.0-RC2 release | v19.06_API0.9 |
176+-------------+--------------+--------------------+-------------------+
177| v1.0-RC3 | 2019-11-29 | 1.0-RC3 release | v19.06_API0.9 |
178+-------------+--------------+--------------------+-------------------+
179| v1.0 | 2020-03-27 | 1.0 release | v20.03_API1.0 |
180+-------------+--------------+--------------------+-------------------+
181| v1.1 | 2020-07-15 | 1.1 release | 1f960947 |
182+-------------+--------------+--------------------+-------------------+
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000183
Minos Galanakisa8f9d102020-07-06 16:09:45 +0100184.. _Cortex-M33: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m33
185.. _Cortex-M23: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m23
186.. _Cortex-M55: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m55
187.. _PSA Certified: https://www.psacertified.org/about/developing-psa-certified/
188.. _Arm TrustZone technology: https://developer.arm.com/ip-products/security-ip/trustzone/trustzone-for-cortex-m
189
Galanakis, Minos6ccf7ec2019-11-07 15:15:05 +0000190--------------
191
Minos Galanakisfc6804e2020-03-10 11:03:34 +0000192*Copyright (c) 2017-2020, Arm Limited. All rights reserved.*