This function erases the serial nor flash connected to the specific interface.
Prototype
u32 XSfl_FlashErase(u8 SflHandler, u32 Address, u32 ByteCount);
Parameters
The following table lists the XSfl_FlashErase function arguments.
| Type | Name | Description |
|---|---|---|
| u8 | SflHandler | is a pointer to the Sfl interface component to use. |
| u32 | Address | is the sector offset address of the flash at which data to be erased. |
| u32 | ByteCount | contains the total size to be erased. |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure