A minor RTC defect at the example of LPCUSBlib_MassStorageHost in LPCOpen 2.2?

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

A minor RTC defect at the example of LPCUSBlib_MassStorageHost in LPCOpen 2.2?

ソリューションへジャンプ
957件の閲覧回数
jeremyhsiao
Contributor II

In the example of LPCUSBlib_MassStorageHost in LPCOpen 2.2, it seems to me that there is a minor defect at setting RTC (time will be used in FAT32).

int rtc_initialize (void)
{
...
Chip_RTC_SetFullAlarmTime(LPC_RTC, &rtcTime);

...

}

It should be

int rtc_initialize (void)
{
...
Chip_RTC_SetFullTime(LPC_RTC, &rtcTime);

...

}

ラベル(3)
1 解決策
777件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi Jeremy,

yes, you're right.

 

the rtc function will be used in filesystem. if you create or modify a file, the file's new time stamp will use the rtc values.

 

thank you!


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

4 返答(返信)
777件の閲覧回数
soledad
NXP Employee
NXP Employee

Could you please let us know the device you are using??

Regards

0 件の賞賛
返信
777件の閲覧回数
jeremyhsiao
Contributor II

I'm using OM13076 board (LPC18S37JET100).

0 件の賞賛
返信
778件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi Jeremy,

yes, you're right.

 

the rtc function will be used in filesystem. if you create or modify a file, the file's new time stamp will use the rtc values.

 

thank you!


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

777件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

We are checking this internally. Thank you for your feedback.

Have a nice day!

Regards

Soledad