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