test

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

sd_mbr_command_copy_bl_t Struct Reference

sd_mbr_command_copy_bl_t Struct Reference
[Types]

This command copies a new BootLoader. More...

#include <nrf_mbr.h>

Data Fields

uint32_t * bl_src
 Pointer to the source of the Bootloader to be be copied.
uint32_t bl_len
 Number of 32 bit words to copy for BootLoader.

Detailed Description

This command copies a new BootLoader.

With this command, destination of BootLoader is always the address written in NRF_UICR->BOOTADDR.

Destination is erased by this function. If (destination+bl_len) is in the middle of a flash page, that whole flash page will be erased.

This function will use PROTENSET to protect the flash that is not intended to be written.

On Success, this function will not return. It will start the new BootLoader from reset-vector as normal.

Return values:
NRF_ERROR_INTERNALindicates an internal error that should not happen.
NRF_ERROR_FORBIDDENif NRF_UICR->BOOTADDR is not set.
NRF_ERROR_INVALID_LENGTHif parameters attempts to read or write outside flash area.

Definition at line 127 of file nrf_mbr.h.


Field Documentation

uint32_t bl_len

Number of 32 bit words to copy for BootLoader.

Definition at line 130 of file nrf_mbr.h.

uint32_t* bl_src

Pointer to the source of the Bootloader to be be copied.

Definition at line 129 of file nrf_mbr.h.