System time drifting

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

System time drifting

1,034 次查看
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?

标签 (1)
0 项奖励
回复
2 回复数

891 次查看
ChrisWood
Contributor I

Thank you for sharing this with us Humphrey :-)

0 项奖励
回复

891 次查看
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 项奖励
回复