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?

跳至解决方案
1,466 次查看
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 解答
1,286 次查看
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 回复数
1,286 次查看
soledad
NXP Employee
NXP Employee

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

Regards

0 项奖励
回复
1,286 次查看
jeremyhsiao
Contributor II

I'm using OM13076 board (LPC18S37JET100).

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

1,286 次查看
soledad
NXP Employee
NXP Employee

Hi,

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

Have a nice day!

Regards

Soledad