FATFS not updating timestamp

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FATFS not updating timestamp

1,303 次查看
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.

 

标记 (1)
0 项奖励
回复
4 回复数

1,197 次查看
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 项奖励
回复

1,245 次查看
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 项奖励
回复

1,209 次查看
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 项奖励
回复

1,262 次查看
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 项奖励
回复