TF-M Hello World

A simple sample based on Hello World that demonstrates adding Trusted Firmware-M (TF-M) to an application.

Overview

This sample uses the Platform Security Architecture (PSA) API to calculate a SHA-256 digest. The PSA API call is handled by the TF-M secure firmware.

Requirements

The sample supports the following development kits:

Hardware platforms

PCA

Board name

Build target

nRF5340 DK

PCA10095

nrf5340dk_nrf5340

nrf5340dk_nrf5340_cpuappns

nRF9160 DK

PCA10090

nrf9160dk_nrf9160

nrf9160dk_nrf9160ns

Building and Running

This sample can be found under samples/tfm/tfm_hello_world in the nRF Connect SDK folder structure.

See Building and programming a sample application for information about how to build and program the application.

Testing

After programming the sample, the following output is displayed in the console:

Hello World! nrf5340dk_nrf5340_cpuapp
SHA256 digest:
d87280aef6d36814af7cd864bc7cf28f
759f8d33c97459dd28eacee7133cb60c

Dependencies

This sample uses the TF-M module that can be found in the following location in the nRF Connect SDK folder structure:

  • modules/tee/tfm/