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