flash_append

Appends a number of bytes to a page in the internal Flash.

int32_t flash_append(
    struct flash_descriptor * flash,
    uint32_t dst_addr,
    uint8_t * buffer,
    uint32_t length
)

This functions never erases the flash before writing.

Parameters

flash

Type: struct flash_descriptor Struct *

Pointer to the HAL FLASH instance.

dst_addr

Type: uint32_t

Destination bytes address to write to flash

buffer

Type: uint8_t *

Pointer to a buffer with data to write to flash

length

Type: uint32_t

Number of bytes to append

Returns

Type: int32_t

Append status.