System time drifting

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

System time drifting

1,060 Views
hbucknell
Contributor I

I have just noticed that the system date/time drifts badly.

-2.5% to be precise. The rtc time (running from the 24MHz crystal) is good, but the system time running internally runs slow.

Losing 15 seconds every 10 minutes is not good when you are dispalying a clock to the user! I have just checked it on the EVK and it does the same.

Has anyone else noticed this? And/or found a fix for it?

Labels (1)
0 Kudos
Reply
2 Replies

917 Views
ChrisWood
Contributor I

Thank you for sharing this with us Humphrey :-)

0 Kudos
Reply

917 Views
hbucknell
Contributor I

The clock rate defined in arch/arm/plat-mxs/include/mach/timex.h for CLOCK_TICK_RATE did not match with the actual clock rate supplied.

I changed it to 32000 and the time is now no longer drifting.

This is connected to the Persistent register setting which does affect the clocking sources and frequencies.

0 Kudos
Reply