UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
551 Views
Registered: ‎08-26-2014

How to set the date of a data file written using library ff.h (xilfs)?

Hello,

 

I am programming the Zynq using SDK. I am storing data files into the SD card using f_write, f_open and f_read functions from the ff.h library provided by xilinx (named xilfs in the BSP).

 

Does anyone know how to set the additional attributes (I'm interested in the date) of a file when using the ff.h library provided by Xilinx?

 

Thanks,

 

Cerilet

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
526 Views
Registered: ‎02-01-2008

Re: How to set the date of a data file written using library ff.h (xilfs)?

Check out f_utime() as documented here: http://elm-chan.org/fsw/ff/doc/utime.html

 

And there is an enablement via FF_FS_MINIMIZE as documented here: http://elm-chan.org/fsw/ff/doc/config.html

 

I haven't used it myself so I'm unsure if it is enabled by default.

0 Kudos