i.MX6UL internal SNVS RTC counts too fast

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

i.MX6UL internal SNVS RTC counts too fast

跳至解决方案
1,374 次查看
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,239 次查看
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,239 次查看
philippbachmann
Contributor II

Hi Igor

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

Best regards

Philipp

0 项奖励
回复
1,240 次查看
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!
-----------------------------------------------------------------------------------------------------------------------