flash_write

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

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

Parameters

flash

Type: struct flash_descriptor Struct *

Pointer to the HAL FLASH instance.

dst_addr

Type: uint32_t

Destination bytes address to write into flash

buffer

Type: uint8_t *

Pointer to a buffer where the content will be written to the flash

length

Type: uint32_t

Number of bytes to write

Returns

Type: int32_t

Write status.