XSfl_FlashWrite - XSfl_FlashWrite - 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 writes to the serial nor flash connected to the interface driver.

Prototype

u32 XSfl_FlashWrite(u8 SflHandler, u32 Address, u32 ByteCount, u8 *WriteBfrPtr);

Parameters

The following table lists the XSfl_FlashWrite function arguments.

Table 1. XSfl_FlashWrite Arguments
Type Name Description
u8 SflHandler is a index to the Sfl interface component to use.
u32 Address contains the address to write data to in the Flash.
u32 ByteCount contains the number of bytes to be write.
u8 * WriteBfrPtr is Pointer to the write buffer (which is to be transmitted)

Returns

  • XST_SUCCESS if successful
  • XST_FAILURE - In case of failure