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

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

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

Jump to solution
629 Views
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);

...

}

Labels (3)
1 Solution
449 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

4 Replies
449 Views
soledad
NXP Employee
NXP Employee

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

Regards

0 Kudos
449 Views
jeremyhsiao
Contributor II

I'm using OM13076 board (LPC18S37JET100).

0 Kudos
450 Views
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!
-----------------------------------------------------------------------------------------------------------------------

449 Views
soledad
NXP Employee
NXP Employee

Hi,

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

Have a nice day!

Regards

Soledad