XSfl_FlashInit - XSfl_FlashInit - 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 initializes controller interface and serial nor flash connected.

Prototype

u32 XSfl_FlashInit(u8 *SflHandler, XSfl_UserConfig SflUserOptions, u8 ControllerInfo);

Parameters

The following table lists the XSfl_FlashInit function arguments.

Table 1. XSfl_FlashInit Arguments
Type Name Description
u8 SflHandler handler information
XSfl_UserConfig SflUserOptions contains the controller and flash configuration info.
u8 ControllerInfo contains the type of controller.

Returns

  • SFL index on successful initialization
  • XST_FAILURE - In case of failure