FATFS not updating timestamp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FATFS not updating timestamp

1,079 Views
MattJCole
Contributor V

 

 

I am using SDK 3.0.3 With the FreeRTOS, FATFS and the RTC. I have the FATFS get the timestamp from the RTC module. The problem is the timestamp doesn't get updated instead it uses g_timeStampStartTime. Is there something special I need to do to have the timestamp in the FATFS to get updated.

 

Tags (1)
0 Kudos
4 Replies

973 Views
MattJCole
Contributor V

I did not do anything with the RTC module am I supposed to do somethin with it? I assumed the FATFS module would have handled that since it starts the RTC module and sets the date and time. 

0 Kudos

1,021 Views
MattJCole
Contributor V

That code only initializes the timestamp when you mount the drive. after that the timestamp never gets updated. The function TimeStamp_UpdateTimeDate just return g_timeStampStartTime. There is a function called TimeStamp_IRQHandler that does update  g_timeStampStartTime by calling the TimeStamp_GetTimeDate function but it is never called. 

0 Kudos

985 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Ok and when you check the RTC module later, is it running and is the RTCF interrupt flag set?

Regards,

Lukas

0 Kudos

1,038 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Matt,

I can't see anything special. Could you check if this code is executed as expected?

lukaszadrapa_0-1642507083005.png

Regards,

Lukas

0 Kudos