Nordic stack and drivers for the mbed BLE API. Version to work around build bug.

Dependents:   microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

sd_mbr_command_copy_sd_t Struct Reference

sd_mbr_command_copy_sd_t Struct Reference
[Types]

This command copies part of a new SoftDevice The destination area is erased before copying. More...

#include <nrf_mbr.h>

Data Fields

uint32_t * src
 Pointer to the source of data to be copied.
uint32_t * dst
 Pointer to the destination where the content is to be copied.
uint32_t len
 Number of 32 bit words to copy.

Detailed Description

This command copies part of a new SoftDevice The destination area is erased before copying.

If dst is in the middle of a flash page, that whole flash page will be erased. If (dst+len) is in the middle of a flash page, that whole flash page will be erased.

The user of this function is responsible for setting the PROTENSET registers.

Return values:
NRF_SUCCESSindicates that the contents of the memory blocks where copied correctly.
NRF_ERROR_INTERNALindicates that the contents of the memory blocks where not verified correctly after copying.

Definition at line 92 of file nrf_mbr.h.


Field Documentation

uint32_t* dst

Pointer to the destination where the content is to be copied.

Definition at line 95 of file nrf_mbr.h.

uint32_t len

Number of 32 bit words to copy.

Must be a multiple of PAGE_SIZE_IN_WORDS words.

Definition at line 96 of file nrf_mbr.h.

uint32_t* src

Pointer to the source of data to be copied.

Definition at line 94 of file nrf_mbr.h.