1.36.6.5 EFC_SectorErase Function

C

bool EFC_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 EFC controller is ready to accept new request by calling EFC_IsBusy()

Parameters

Param Description
address FLASH address to be Erased

Returns

Always returns true.

Example

EFC_SectorErase(0x500000);

while(EFC_IsBusy());

Remarks

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