RTC issue-pca8565

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

RTC issue-pca8565

3,354 次查看
zhaocq
Contributor II

we use external RTC PCA8565, the bellow issues please help to resolve:

1) boot stage,we find the error log

   

[ 0.118882] rtc-pca8565 2-0051: Power loss detected, invalid time
[ 0.118987] rtc-pca8565 2-0051: rtc core: registered rtc-pca8565 as rtc0

[ 0.119585] rtc-pca8565 2-0051: Power loss detected, invalid time
[ 0.119591] rtc-pca8565 2-0051: hctosys: unable to read the hardware clock

2) after boot, we use command:i2cget -f -y 2 0x51 0x02

we can get the data(no i2c error), but the register 0x02 the highest bit is 1 always.

Could you tell me that is why, thanks in advance!

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

1,210 次查看
ekim
Contributor I

Hi,

Do you have solved this issue on your side? If so, could you share how to fix it?

Thanks.

0 项奖励

1,197 次查看
ekim
Contributor I

Does it mean should clear OS flag again to fix it?

0 项奖励

1,672 次查看
jkl
Contributor I

Hello, could you please tell me whether this problem has been solved? I am also facing this problem now. I hope you can give me some advice, thank you very much

0 项奖励

3,241 次查看
igorpadykov
NXP Employee
NXP Employee

Hi zhao

for power loss issue one can check hardware using documentation below:

PCA8565 datasheet

https://www.nxp.com/docs/en/data-sheet/PCA8565.pdf 

User Manual

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

software patch

rtc: add support for rtc NXP pca8565 - Patchwork 

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

0 项奖励

3,242 次查看
zhaocq
Contributor II

hi igor,

Thanks for your reply.

we have measure our power voltage and clk, they are both no problem. Also our i2c is ok.

but the register values sometimes report error, for example , the register 0x07 stands for month value, 

we get the value is 0(1~12 reasonable).

I want to know before using pca8565_rtc_read_time, if i should set the time firstly, using pca8565_rtc_set_time?

Now we can not see pca8565_rtc_set_time call when reboot.

0 项奖励