rtc pcf85163 chip return back to 1970 issue

cancel
Showing results for 
Search instead for 
Did you mean: 

rtc pcf85163 chip return back to 1970 issue

Jump to solution
634 Views
hwo
Contributor III

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!

Labels (2)
0 Kudos
1 Solution
501 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
2 Replies
502 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
501 Views
hwo
Contributor III

是的,我就是那个Chinese customer.

Thanks!

0 Kudos