XSfl_SectorErase - XSfl_SectorErase - 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 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.

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