XSfl_FlashErase - XSfl_FlashErase - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

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.

Table 1. XSfl_FlashErase 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