Jump to main content

##

# 3.12.19.14 SEFC_SectorErase Function

## C

    bool SEFC_SectorErase( uint32_t address)

## Summary

Erases a Sector in the FLASH.

## Description

This function determines the flash panel for the given address by calling `SEFC_FlashPanelGet` and then erases the corresponding sector (collection of pages).

## Precondition

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

## Parameters

Param | Description
--- | ---
address | FLASH address to be Erased

## Returns

Always returns true.

## Example

    SEFC_SectorErase(0x500000);

    while(SEFC_IsBusy());

## Remarks

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