| S212 SoftDevice v2.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
sd_mbr_command_copy_sd_t Struct Reference
Types

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. More...

`#include <nrf_mbr.h>`

## Data Fields
uint32_t * | src
uint32_t * | dst
uint32_t | len

## 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 BPROT registers.

Return values

  NRF_SUCCESS | indicates that the contents of the memory blocks where copied correctly.
  NRF_ERROR_INTERNAL | indicates that the contents of the memory blocks where not verified correctly after copying.

## Field Documentation

uint32_t* sd_mbr_command_copy_sd_t::dst

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

uint32_t sd_mbr_command_copy_sd_t::len

Number of 32 bit words to copy. Must be a multiple of MBR_PAGE_SIZE_IN_WORDS words.

uint32_t* sd_mbr_command_copy_sd_t::src

Pointer to the source of data to be copied.