TF-M Hello World
The TF-M Hello World sample is based on Hello World that demonstrates adding Trusted Firmware-M (TF-M) to an application.
The sample supports the following development kits:
This sample uses the Platform Security Architecture (PSA) API to calculate a SHA-256 digest and the TF-M platform read service to read two FICR registers. The PSA API call is handled by the TF-M secure firmware.
This sample can be found under
samples/tfm/tfm_hello_world in the nRF Connect SDK folder structure.
To build the sample with Visual Studio Code, follow the steps listed on the How to build an application page in the nRF Connect for VS Code extension documentation. See Building and programming an application for other building and programming scenarios and Testing and debugging an application for general information about testing and debugging in the nRF Connect SDK.
After programming the sample, the following output is displayed in the console:
Hello World! nrf5340dk_nrf5340_cpuapp
Generating random number
Reading some secure memory that NS is allowed to read
Hashing 'Hello World! nrf5340dk_nrf5340_cpuapp'
This sample uses the TF-M module that can be found in the following location in the nRF Connect SDK folder structure:
This sample uses the following libraries: