XSfl_FlashEnterExit4BAddMode - XSfl_FlashEnterExit4BAddMode - 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 API enters the flash device into 4 bytes addressing mode. As per the Micron spec, before issuing the command to enter into 4 byte addr mode, a write enable command is issued.

Prototype

u32 XSfl_FlashEnterExit4BAddMode(XSfl_Interface *SflInstnacePtr, int Enable, u8 ChpiSelect);

Parameters

The following table lists the XSfl_FlashEnterExit4BAddMode function arguments.

Table 1. XSfl_FlashEnterExit4BAddMode Arguments
Type Name Description
XSfl_Interface SflInstancePtr is a pointer to the XSfl_Interface driver component to use.
int Enable is a either 1 or 0 if 1 then enters 4 byte if 0 exits.
u8 ChipSelNum is the chip select number.

Returns

  • XST_SUCCESS if successful
  • XST_FAILURE - In case of failure