xilffs
Vitis Drivers API Documentation
xilffs_polled_example.c File Reference

Overview

Note
This example uses file system with SD to write to and read from an SD card using ADMA2 in polled mode. To test this example File System should not be in Read Only mode. To test this example USE_MKFS option should be true.

This example was tested using SD2.0 card and eMMC (using eMMC to SD adaptor).

To test with different logical drives, drive number should be mentioned in both FileName and Path variables. By default, it will take drive 0 if drive number is not mentioned in the FileName variable. For example, to test logical drive 1 FileName = "1:/<file_name>" and Path = "1:/" Similarly to test logical drive N, FileName = "N:/<file_name>" and Path = "N:/"

None.

 MODIFICATION HISTORY:
 Ver   Who Date     Changes


1.00a hk 10/17/13 First release 2.2 hk 07/28/14 Make changes to enable use of data cache. 2.5 sk 07/15/15 Used File size as 8KB to test on emulation platform. 2.9 sk 06/09/16 Added support for mkfs. 3.10 mn 08/18/18 Change file size to 8MB from 8KB for ZynqMP platform

 

Functions

int FfsSdPolledExample (void)
 File system example using SD driver to write to and read from an SD card in polled mode. More...
 
int main (void)
 Main function to call the SD example. More...
 

Function Documentation

int FfsSdPolledExample ( void  )

File system example using SD driver to write to and read from an SD card in polled mode.

This example creates a new file on an SD card (which is previously formatted with FATFS), write data to the file and reads the same data back to verify.

Parameters
None
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None

Referenced by main().

int main ( void  )

Main function to call the SD example.

Parameters
None
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None

References FfsSdPolledExample().