XSfl_FlashPageWrite - XSfl_FlashPageWrite - 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 specific interface.

Prototype

u32 XSfl_FlashPageWrite(XSfl_Interface *SflInstnacePtr, u32 Address, u32 ByteCount, u8 *WriteBfrPtr);

Parameters

The following table lists the XSfl_FlashPageWrite function arguments.

Table 1. XSfl_FlashPageWrite Arguments
Type Name Description
XSfl_Interface Sfl_Handler is a index to the Sfl interface component to use.
u32 Address contains the address of the first page which needs to be written.
u32 ByteCount contains the number of bytes to 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