1.8.19.5 SEFCx_SectorErase Function

C

bool SEFCx_SectorErase( uint32_t address) // x - Instance of the SEFC peripheral

Summary

Erases a Sector in the FLASH.

Description

This function is used to erase a sector (collection of pages).

Precondition

Validate if SEFCx controller is ready to accept new request by calling SEFCx_IsBusy()

Parameters

Param Description
address FLASH address to be Erased

Returns

Always returns true.

Example

SEFC0_SectorErase(0x500000);

while(SEFC0_IsBusy());

Remarks

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