Hi all,
I have a mx28 board with a NXP PCF85163 rtc chip using i2c bus.
Recently I found when set the time to the last minutes of the year(take 2016-12-31 23:59:00 as an example), and one minute later rtc time turn to 1970-1-1 00:00:00
Test for any time but other than the last day of a year is OK.
Is this the chip's problem? Any one came across similar problem ever?
Thanks in advance!
解決済! 解決策の投稿を見る。
Hello hk,
The question is the same as that of a Chinese customer, I don't know whether you are same people, if you can understand Chinese, see the link, please!
rtc芯片设置时间后重新回到1970年-恩智浦MCU论坛论坛 - 21ic电子技术论坛
The chinese customer found and solved the issue, the root cause is : The valuse of register for Month starts from 1, but in kernel, 1 is taken from the value and access arry, so error will occur.
Best regards,
Weidong
Hello hk,
The question is the same as that of a Chinese customer, I don't know whether you are same people, if you can understand Chinese, see the link, please!
rtc芯片设置时间后重新回到1970年-恩智浦MCU论坛论坛 - 21ic电子技术论坛
The chinese customer found and solved the issue, the root cause is : The valuse of register for Month starts from 1, but in kernel, 1 is taken from the value and access arry, so error will occur.
Best regards,
Weidong
是的,我就是那个Chinese customer.
Thanks!