1.42.4.4 HEFC_SectorErase Function
C
bool HEFC_SectorErase( uint32_t address)
Summary
Erases a Sector in the FLASH.
Description
This function is used to erase a sector (collection of pages).
Precondition
Validate if HEFC controller is ready to accept new request by calling HEFC_IsBusy()
Parameters
Param | Description |
---|---|
address | FLASH address to be Erased |
Returns
Always returns true.
Example
HEFC_SectorErase( 0x10010000 );
while(HEFC_IsBusy());
Remarks
Application needs to poll for busy bit or wait for callback to be called before sending next request.