nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ suit_trigger_update()

suit_ssf_err_t suit_trigger_update ( suit_plat_mreg_t *  regions,
size_t  len 
)

Trigger the system update procedure.

This function is going to reboot the system. There are no means to pause or abort the upgrade after this function is called.

Note
The envelope must contain at least authentication wrapper and the SUIT manifest.
Parameters
[in]regionsList of update candidate memory regions (envelope, caches). By convention, the first region holds the SUIT envelope.
[in]lenLength of the memory regions list.
Return values
SUIT_PLAT_SUCCESSif successful.
SUIT_PLAT_ERR_INVALif input parameters are invalid.
SUIT_PLAT_ERR_NOMEMif update candidate has too many regions.
SUIT_PLAT_ERR_HW_NOT_READYif device managing SUIT storage is not initialized.
SUIT_PLAT_ERR_IOif failed to save the update candidate info.
SUIT_PLAT_ERR_IPCin case of SSF protocol error.