NVMCTRL_Basic_write_flash_block

Writes a buffer to flash. The flash does not need to be erased beforehand. The flash address to write to does not need to be aligned to any specific boundary.

nvmctrl_status_t NVMCTRL_Basic_write_flash_block(
    flash_adr_t flash_adr,
    uint8_t * data,
    size_t size,
    uint8_t * ram_buffer
)

Parameters

flash_adr

Type: flash_adr_t typedef

The byte-address of the flash to write to

data

Type: uint8_t *

The data to write to the flash

size

Type: size_t

The size of the data (in bytes) to write to the flash

page_buffer

A buffer in memory the size of a flash page, used as a scratchpad

Returns

Type: nvmctrl_status_t

Status of the operation