1.8.19.3 SEFCx_QuadWordWrite Function

C

bool SEFCx_QuadWordWrite( uint32_t* data, uint32_t address ) // x - Instance of the SEFC peripheral

Summary

Writes a 128-bit data to a given address in FLASH memory.

Description

This function takes a 32-bit address, a pointer to the 128-bit data and writes it to the given location in FLASH memory.

Precondition

Validate if SEFCx controller is ready to accept new request by calling SEFCx_IsBusy() The Memory to be written should be in Erased State.

Parameters

Param Description
address FLASH address to be modified
data pointer to 128-bit data buffer

Returns

Always returns true.

Example

uint32_t data[4];

data[0] = 0x12345678;
data[1] = 0x87654321;
data[2] = 0x12345678;
data[3] = 0x87654321;

SEFC0_QuadWordWrite((uint32_t *) data, 0x500000);

while(SEFC0_IsBusy());

Remarks

Application needs to poll for busy bit or wait for callback to be called before sending next request.