AnsweredAssumed Answered

K20 with MQX, is there an MQX call that will set the RTC or does this have to be done with bit bashing registers?

Question asked by Robert Lewis on Dec 19, 2013
Latest reply on Dec 23, 2013 by David E Seymour

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.

 

Thanks

 

Robert

Outcomes