Mistake on this page?
Report an issue in GitHub or email us
Macros | Functions
lifecycle.h File Reference

This file describes the PSA RoT Lifecycle API. More...

#include <stddef.h>
#include <stdint.h>
#include "mbed_toolchain.h"
#include "psa/error.h"

Go to the source code of this file.


#define PSA_LIFECYCLE_STATE_MASK   (0xff00u)
 A mask value that extracts the main lifecycle state. More...
 A mask value that extracts the IMPLEMENTATION DEFINED lifecycle sub-state. More...
#define PSA_LIFECYCLE_UNKNOWN   (0x0000u)
 State is unknown. More...
 Assembly and Test state. More...
 PSA RoT Provisioning state. More...
#define PSA_LIFECYCLE_SECURED   (0x3000u)
 Secured state. More...
 Non PSA RoT debug state. More...
 Recoverable PSA RoT Debug state. More...
 Decommissioned state. More...


uint32_t psa_security_lifecycle_state (void)
 Get PSA RoT lifecycle state. More...
psa_status_t mbed_psa_reboot_and_request_new_security_state (uint32_t new_state)
 Request state change. More...
MBED_NORETURN void mbed_psa_system_reset ()
 Resets the system. More...

Detailed Description

This file describes the PSA RoT Lifecycle API.

Definition in file lifecycle.h.

Macro Definition Documentation


Assembly and Test state.

Definition at line 39 of file lifecycle.h.


Decommissioned state.

Definition at line 44 of file lifecycle.h.


Non PSA RoT debug state.

Definition at line 42 of file lifecycle.h.


PSA RoT Provisioning state.

Definition at line 40 of file lifecycle.h.


Recoverable PSA RoT Debug state.

Definition at line 43 of file lifecycle.h.

#define PSA_LIFECYCLE_SECURED   (0x3000u)

Secured state.

Definition at line 41 of file lifecycle.h.

#define PSA_LIFECYCLE_STATE_MASK   (0xff00u)

A mask value that extracts the main lifecycle state.

Definition at line 35 of file lifecycle.h.


A mask value that extracts the IMPLEMENTATION DEFINED lifecycle sub-state.

Definition at line 36 of file lifecycle.h.

#define PSA_LIFECYCLE_UNKNOWN   (0x0000u)

State is unknown.

Definition at line 38 of file lifecycle.h.

Function Documentation

psa_status_t mbed_psa_reboot_and_request_new_security_state ( uint32_t  new_state)

Request state change.

State change requested and the reset the system.

System reset will not be performed when switching from PSA_LIFECYCLE_ASSEMBLY_AND_TEST to PSA_LIFECYCLE_ASSEMBLY_AND_TEST.
state change to follwing states will delete PSA internal storage:
MBED_NORETURN void mbed_psa_system_reset ( )

Resets the system.

PSA targets do not allow NSPE to access system power domain. This API requests system reset to be carried out by SPE once all critical secure tasks are finished.

uint32_t psa_security_lifecycle_state ( void  )

Get PSA RoT lifecycle state.

Return values
Themain state and sub-state are encoded as follows:
version[15:8] – main lifecycle state version[7:0] – IMPLEMENTATION DEFINED sub-state
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.