S332 SoftDevice v4.0.2
Functions

Functions

uint32_t sd_mbr_command (sd_mbr_command_t *param)
 Issue Master Boot Record commands. More...
 

Detailed Description

Function Documentation

uint32_t sd_mbr_command ( sd_mbr_command_t param)

Issue Master Boot Record commands.

Commands used when updating a SoftDevice and bootloader.

The SD_MBR_COMMAND_COPY_BL and SD_MBR_COMMAND_VECTOR_TABLE_BASE_SET requires parameters to be retained by the MBR when resetting the IC. This is done in a separate flash page provided by the application. The UICR register UICR.NRFFW[1] must be set to an address corresponding to a page in the application flash space. This page will be cleared by the MBR and used to store the command before reset. When the UICR.NRFFW[1] field is set the page it refers to must not be used by the application. If the UICR.NRFFW[1] is set to 0xFFFFFFFF (the default) MBR commands which use flash will be unavailable and return NRF_ERROR_NO_MEM.

Parameters
[in]paramPointer to a struct describing the command.
Note
For return values, see sd_mbr_command_copy_sd_t sd_mbr_command_copy_bl_t sd_mbr_command_compare_t sd_mbr_command_vector_table_base_set_t
Return values
NRF_ERROR_NO_MEMif UICR.NRFFW[1] is not set (i.e. is 0xFFFFFFFF).
NRF_ERROR_INVALID_PARAMif an invalid command is given.

Documentation feedback | Developer Zone | Subscribe | Updated