S140 SoftDevice v6.1.1


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. The location of the flash page should be provided by the application in either MBR_PARAM_PAGE_ADDR or MBR_UICR_PARAM_PAGE_ADDR. If both addresses are set, the MBR will prioritize MBR_PARAM_PAGE_ADDR. This page will be cleared by the MBR and is used to store the command before reset. When an address is specified, the page it refers to must not be used by the application. If no address is provided by the application, i.e. both MBR_PARAM_PAGE_ADDR and MBR_UICR_PARAM_PAGE_ADDR is 0xFFFFFFFF, MBR commands which use flash will be unavailable and return NRF_ERROR_NO_MEM.

[in]paramPointer to a struct describing the command.
For a complete set of 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, sd_mbr_command_irq_forward_address_set_t
Return values
NRF_ERROR_NO_MEMNo MBR parameter page provided
NRF_ERROR_INVALID_PARAMif an invalid command is given.

Documentation feedback | Developer Zone | Subscribe | Updated