This function used to erase the sectors of the serial nor flash connected to the specific interface.
Prototype
u32 XSfl_SectorErase(XSfl_Interface *SflInstnacePtr, u32 Address);
Parameters
The following table lists the XSfl_SectorErase function arguments.
| Type | Name | Description |
|---|---|---|
| XSfl_Interface | Sfl_Handler |
is a pointer to the
XSfl
interface component to use.
|
| u32 | Address | contains the address of the first sector which needs to be erased. |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure