We are using the MQX MFS system and USB driver and need the correct date and time on the file systems. We would like to set the time in the RTC module and retrieve it again on subsequent boots so that the file system times are correct. Can anyone suggest a best practice for setting the time for using the RTC please.
I noticed that when I create a new file, it has a created date of 01-Jan-80, but the correct date in the 'Modified' column. Is there a way to cause MQX or the MFS system to place the correct date on both aspects of the file system. I am using the _time_set(&time_struct) mqx call.