The XilFlash library provides read/write/erase/lock/unlock features to access a parallel flash device.
This library implements the functionality for flash memory devices that conform to the "Common Flash Interface" (CFI) standard. CFI allows a single flash library to be used for an entire family of parts and helps us determine the algorithm to utilize during runtime.
Note: All the calls in the library are blocking in nature in that the control is returned back to user only after the current operation is completed successfully or an error is reported.
Library Initialization
The
XFlash_Initialize()
function should be called by the application before any other function in the
library. The initialization function checks for the device family and initializes the XFlash
instance with the family specific data. The VT table (contains the function pointers to
family specific APIs) is setup and family specific initialization routine is called. Note: The XilFlash library is not supported by Zynq UltraScale+ MPSoC and Versal platforms.