i.MX6UL internal SNVS RTC counts too fast

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

i.MX6UL internal SNVS RTC counts too fast

ソリューションへジャンプ
1,302件の閲覧回数
philippbachmann
Contributor II

Dear all, 

I want to use the SNVS RTC with backup battery on imx6ul. I was able to enable it in kernel and device tree. From user space I can read it (hwclock -r) and set it to system time (hwclock -w). However, it runs way to fast, around +8 seconds faster per minute. This is more than 137ms per second. According to iMX6UL reference manual there is an RTC calibration register, however the maximum possible calibration value is 16/32768=488us per second, so no way I can compensate it this way. I know that internal clocks are quite inaccurate compared to external crystals, but I don't believe the difference is that big.

Does anyone have an idea what the problem could be? 

Thanks and regards

ラベル(2)
タグ(4)
1 解決策
1,167件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Philipp

according to Table 11. Oscillator and clock recommendations

Hardware Development Guide for the i.MX 6UltraLite Applications Processor

"..on-chip 40 kHz oscillator. The tolerance is ± 50%."

https://www.nxp.com/docs/en/user-guide/IMX6ULHDG.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
1,167件の閲覧回数
philippbachmann
Contributor II

Hi Igor

Did not expect that the tolerance is that big, thanks a lot!

Best regards

Philipp

0 件の賞賛
返信
1,168件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Philipp

according to Table 11. Oscillator and clock recommendations

Hardware Development Guide for the i.MX 6UltraLite Applications Processor

"..on-chip 40 kHz oscillator. The tolerance is ± 50%."

https://www.nxp.com/docs/en/user-guide/IMX6ULHDG.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------