System time drifting

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

System time drifting

993件の閲覧回数
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 返答(返信)

850件の閲覧回数
ChrisWood
Contributor I

Thank you for sharing this with us Humphrey :-)

0 件の賞賛
返信

850件の閲覧回数
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 件の賞賛
返信