The S25FL1 serial firmware dataflash driver is based on top of the corresponding SPI driver. A Dataflash structure instance has to be initialized using the S25FL1_Configure() function. Then a command can be send to the serial flash using the SPI_SendCommand() function.
Usage
-
Initializes an S25FL1 instance and configures SPI chip select pin using S25FL1_Configure().
-
Detect DF and returns DF description corresponding to the device connected using S25FL1D_ReadJedecId() and S25FL1_FindDevice(). This function shall be called by the application before S25FL1_SendCommand().
-
Sends a command to the DF through the SPI using S25FL1_SendCommand(). The command is identified by its command code and the number of bytes to transfer.
-
Example code for sending command to write a page to DF.
-
Example code for sending command to read a page from DF. If data needs to be received, then a data buffer must be provided.
-
This function does not block; its optional callback will be invoked when the transfer completes.
-
Check the S25FL1 driver is ready or not by polling S25FL1_IsBusy().
Related files :
at25_spi::c
at25_spi::h.