3.8.19.11 SEFC_PageWrite Function

C

bool SEFC_PageWrite( uint32_t* data, uint32_t address )

Summary

Writes data of size equivalent to page size to a given FLASH address.

Description

This function takes a 32-bit address and a pointer to page-sized data. Depending on which flash panel is mapped at the given address, it calls the associated SEFCx flash controller instance and writes the data to the give location in FLASH.

Precondition

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

Parameters

ParamDescription
addressFLASH address to be modified
datapointer to data buffer

Returns

Always returns true.

Example

SEFC_PageWrite( (uint32_t *) buffer, 0x500000);

while(SEFC_IsBusy(0x500000));

Remarks

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