Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 1 | ################## |
| 2 | Trusted Firmware M |
| 3 | ################## |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 4 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 5 | Trusted Firmware-M (TF-M) implements the Secure Processing Environment (SPE) |
| 6 | for Armv8-M, Armv8.1-M architectures (e.g. the `Cortex-M33`_, `Cortex-M23`_, |
Minos Galanakis | 01da63f | 2020-09-15 17:38:59 +0100 | [diff] [blame] | 7 | `Cortex-M55`_ processors) or dual-core platforms.It is the platform security |
| 8 | architecture reference implementation aligning with PSA Certified guidelines, |
| 9 | enabling chips,Real Time Operating Systems and devices to become PSA Certified. |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 10 | |
| 11 | TF-M relies on an isolation boundary between the Non-secure Processing |
| 12 | Environment (NSPE) and the Secure Processing Environment (SPE). It can but is |
| 13 | not limited to using the `Arm TrustZone technology`_ on Armv8-M and Armv8.1-M |
| 14 | architectures. 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 Galanakis | 01da63f | 2020-09-15 17:38:59 +0100 | [diff] [blame] | 28 | FF-M compliant design with TF-M |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 29 | |
| 30 | Applications and Libraries in the Non-secure Processing Environment can |
| 31 | utilize these secure services with a standardized set of PSA Functional APIs. |
| 32 | Applications running on Cortex-M devices can leverage TF-M services to ensure |
| 33 | secure connection with edge gateways and IoT cloud services. It also protects |
| 34 | the critical security assets such as sensitive data, keys and certificates on |
| 35 | the platform. TF-M is supported on several Cortex-M based |
| 36 | :doc:`Microcontrollers </platform/ext/index>` and Real Time Operating |
| 37 | Systems (RTOS). |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 38 | |
| 39 | Terms ``TFM`` and ``TF-M`` are commonly used in documents and code and both |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 40 | refer to ``Trusted Firmware M.`` :doc:`Glossary </docs/reference/glossary>` |
| 41 | has the list of terms and abbreviations. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 42 | |
| 43 | ####### |
| 44 | License |
| 45 | ####### |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 46 | The software is provided under a BSD-3-Clause :doc:`License </docs/contributing/lic>`. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 47 | Contributions to this project are accepted under the same license with developer |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 48 | sign-off as described in the :doc:`Contributing Guidelines </docs/contributing/contributing>`. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 49 | |
| 50 | This project contains code from other projects as listed below. The code from |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 51 | external projects is limited to ``app``, ``bl2``, ``lib`` and ``platform`` |
| 52 | folders. The original license text is included in those source files. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 53 | |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 54 | - 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 Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 58 | - 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, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 61 | |
Soby Mathew | 6325be5 | 2020-06-17 13:58:51 +0100 | [diff] [blame] | 62 | ######################### |
| 63 | Release Notes and Process |
| 64 | ######################### |
| 65 | The :doc:`Release Cadence and Process </docs/contributing/release_process>` provides |
| 66 | release cadence and process information. |
| 67 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 68 | The :doc:`Change Log & Release Notes </docs/reference/changelog>` provides details of |
Soby Mathew | d8efe8f | 2020-03-16 15:19:05 +0000 | [diff] [blame] | 69 | major features of the release and platforms supported. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 70 | |
| 71 | ############### |
| 72 | Getting Started |
| 73 | ############### |
| 74 | |
| 75 | ************ |
| 76 | Prerequisite |
| 77 | ************ |
Minos Galanakis | 01da63f | 2020-09-15 17:38:59 +0100 | [diff] [blame] | 78 | Trusted Firmware M provides a reference implementation of platform security |
| 79 | architecture reference implementation aligning with PSA Certified guidelines. |
| 80 | It is assumed that the reader is familiar with specifications can be found at |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 81 | `Platform Security Architecture Resources <https://developer.arm.com/architectures/security-architectures/platform-security-architecture>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 82 | |
| 83 | The current TF-M implementation specifically targets TrustZone for ARMv8-M so a |
| 84 | good understanding of the v8-M architecture is also necessary. A good place to |
| 85 | get started with ARMv8-M is |
| 86 | `developer.arm.com <https://developer.arm.com/technologies/trustzone>`__. |
| 87 | |
| 88 | ********************** |
| 89 | Really getting started |
| 90 | ********************** |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 91 | Trusted Firmware M source code is available on |
Minos Galanakis | 0f39fa5 | 2020-06-08 16:53:53 +0100 | [diff] [blame] | 92 | `git.trustedfirmware.org <https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 93 | |
| 94 | To build & run TF-M: |
| 95 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 96 | - Follow the :doc:`SW requirements guide </docs/getting_started/tfm_sw_requirement>` |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 97 | to set up your environment. |
| 98 | - Follow the |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 99 | :doc:`Build instructions </docs/getting_started/tfm_build_instruction>` to compile |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 100 | and build the TF-M source. |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 101 | - Follow the :doc:`User guide </docs/getting_started/tfm_user_guide>` for information |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 102 | on running the example. |
| 103 | |
| 104 | To port TF-M to a another system or OS, follow the |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 105 | :doc:`OS Integration Guide </docs/getting_started/tfm_integration_guide>` |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 106 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 107 | Please also see the :doc:`glossary </docs/reference/glossary>` of terms used in the project. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 108 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 109 | :doc:`Contributing Guidelines </docs/contributing/contributing>` contains guidance on how to |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 110 | contribute to this project. |
| 111 | |
| 112 | Further documents can be found in the ``docs`` folder. |
| 113 | |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 114 | ################### |
| 115 | Platforms supported |
| 116 | ################### |
Mark Horvath | 9a5a9b9 | 2019-11-29 15:57:55 +0100 | [diff] [blame] | 117 | - 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 Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 122 | - Cortex-M33 system: |
| 123 | |
Soby Mathew | 691a6d9 | 2020-07-01 07:49:23 +0100 | [diff] [blame] | 124 | - `FPGA image loaded on MPS2 board (AN521). |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 125 | <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_ |
Soby Mathew | 691a6d9 | 2020-07-01 07:49:23 +0100 | [diff] [blame] | 126 | - `Fast model FVP_MPS2_AEMv8M (AN521). |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 127 | <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 Mathew | 691a6d9 | 2020-07-01 07:49:23 +0100 | [diff] [blame] | 134 | - `FPGA image loaded on MPS3 board (AN524). |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 135 | <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 Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 138 | - `LPC55S69. |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 139 | <https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/lpcxpresso55s69-development-board:LPC55S69-EVK>`_ |
Ludovic Barre | 8a77bdd | 2020-03-26 19:53:07 +0100 | [diff] [blame] | 140 | - `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ønningstad | ba9aac0 | 2020-09-14 15:19:28 +0200 | [diff] [blame] | 144 | - `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łąbek | bb4d5c5 | 2020-11-03 10:08:48 +0100 | [diff] [blame] | 148 | - `nRF5340 DK (nordic_nrf/nrf5340dk_nrf5340_cpuapp). |
| 149 | <https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF5340-PDK>`_ |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 150 | |
| 151 | - Cortex-M23 system: |
| 152 | |
Soby Mathew | 691a6d9 | 2020-07-01 07:49:23 +0100 | [diff] [blame] | 153 | - `FPGA image loaded on MPS2 board (AN519, AN539). |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 154 | <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_ |
wschang0 | 10481a9 | 2020-10-16 10:02:06 +0800 | [diff] [blame] | 155 | - `M2351. |
| 156 | <https://www.nuvoton.com/products/iot-solution/iot-platform/numaker-pfm-m2351/>`_ |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 157 | |
| 158 | - Dual Core Cortex-M system: |
| 159 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 160 | - `PSoc64. |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 161 | <https://www.cypress.com/documentation/product-brochures/cypress-psoc-64-secure-microcontrollers>`_ |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 162 | |
Mark Horvath | 8dcc383 | 2020-08-07 15:10:52 +0200 | [diff] [blame] | 163 | - Secure Enclave system: |
| 164 | |
Gabor Abonyi | 944e9c2 | 2020-10-01 16:18:41 +0200 | [diff] [blame] | 165 | - :doc:`Musca-B1 Secure Enclave. </platform/ext/target/musca_b1/secure_enclave/readme>` |
Mark Horvath | 8dcc383 | 2020-08-07 15:10:52 +0200 | [diff] [blame] | 166 | |
Soby Mathew | 175efe1 | 2020-07-03 14:33:11 +0100 | [diff] [blame] | 167 | The document :doc:`Platform Deprecation and Removal </docs/contributing/platform_deprecation>` |
| 168 | lists the deprecated platforms planned to be removed from upstream. |
| 169 | |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 170 | #################### |
| 171 | Feedback and support |
| 172 | #################### |
Minos Galanakis | fc6804e | 2020-03-10 11:03:34 +0000 | [diff] [blame] | 173 | For this release, feedback is requested via email to |
| 174 | `tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 175 | |
| 176 | ############### |
| 177 | Version history |
| 178 | ############### |
Mate Toth-Pal | 955235a | 2020-06-15 13:48:34 +0200 | [diff] [blame] | 179 | +-------------+--------------+--------------------+-------------------+ |
| 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 Patel | c68114f | 2020-12-29 10:29:10 +0000 | [diff] [blame] | 193 | +-------------+--------------+--------------------+-------------------+ |
Minos Galanakis | c9a81db | 2020-11-16 20:22:11 +0000 | [diff] [blame] | 194 | | v1.2.0 | 2020-11-25 | 1.2.0 release | 90c8e680 | |
Mate Toth-Pal | 955235a | 2020-06-15 13:48:34 +0200 | [diff] [blame] | 195 | +-------------+--------------+--------------------+-------------------+ |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 196 | |
Minos Galanakis | 3568bea | 2020-11-16 20:15:48 +0000 | [diff] [blame] | 197 | Please refer to |
| 198 | :ref:`docs/contributing/release_process:Release Version Scheme` for interpreting |
| 199 | version numbers. |
| 200 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 201 | .. _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, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 207 | -------------- |
| 208 | |
Minos Galanakis | fc6804e | 2020-03-10 11:03:34 +0000 | [diff] [blame] | 209 | *Copyright (c) 2017-2020, Arm Limited. All rights reserved.* |