nRF9160: Secure Services

The Secure Services sample shows how to use the secure services provided by Secure Partition Manager. This firmware needs Secure Partition Manager to be present on the chip.

Requirements

The sample supports the following development kit:

Hardware platforms

PCA

Board name

Build target

nRF9160 DK

PCA10090

nrf9160dk_nrf9160

nrf9160dk_nrf9160_ns

When built for an _ns build target, the sample is configured to compile and run as a non-secure application. Therefore, it automatically includes Trusted Firmware-M that prepares the required peripherals and secure services to be available for the application.

You can also configure it to use the Secure Partition Manager.

Overview

This sample generates random numbers and prints them to the console, sleeps, then reboots. This is to demonstrate the spm_request_system_reboot() and spm_request_random_number() secure services.

Building and running

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

When built as a non-secure firmware image for the _ns build target, the sample automatically includes the Trusted Firmware-M (TF-M). You can configure it to use the Secure Partition Manager instead of TF-M.

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

Dependencies

This sample uses the following nRF Connect SDK libraries: