FATFS not updating timestamp

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FATFS not updating timestamp

1,301件の閲覧回数
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,195件の閲覧回数
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,243件の閲覧回数
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,207件の閲覧回数
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,260件の閲覧回数
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 件の賞賛
返信