I.MX53 WINCE System Time Error

cancel
Showing results for 
Search instead for 
Did you mean: 

I.MX53 WINCE System Time Error

Jump to solution
342 Views
larson
Contributor III

大家好:

    在前一段时间测试的时候(iMX53_MDK_Mobility),遇到一个很奇怪的问题,系统时间设置为2014-03-02到2014-03-08时段的时候,下次开机后,几十秒钟之后,系统时间会自动跳变到前一小时,假如时刻是9:00,就会跳变为8:00,分钟还是会自动增加;系统时间设置为2014-11-01时段的时候,下次开机后,几十秒钟之后,系统时间会自动跳变到后一小时,假如时刻是9:00,就会跳变为10:00,分钟还是会自动增加。其余的时间系统时间正常,不会出现这种情况。

    做了一个自动测试程序,连续测了几年的周期,每年的这两个时段都会出现这个问题?!

请问大家谁遇到过这样的情况,或者知道大概是什么原因造成的,请告知,万分感谢!!

Hello everyone,

I have a problem with the WINCE7 system, I use the i.mx53_MDK_mobility BSP.

We have test the software at the system, the tester find at a specific time the system will ahead or back one hour, We make a test application for test this problem, and find when at 2014-03-02 to 2014-03-08, As long as we restart the system, the system time shall back one hour, eg: display 9:00 before restart, and show 8:00 After the restart; but when at 2014-11-01, restart the system the system time shall ahead one hour, eg: display 9:00 before restart, and show 10:00 after the restart.

So, does anybody meet this situation or knows  how this situation come form,please tell me, thanks!!

Labels (1)
Tags (2)
0 Kudos
1 Solution
135 Views
larson
Contributor III

Hello all,

I have resolved this problem, it's about the Daylight saving time, so disable it shall resolved this bug.

View solution in original post

0 Kudos
3 Replies
136 Views
larson
Contributor III

Hello all,

I have resolved this problem, it's about the Daylight saving time, so disable it shall resolved this bug.

View solution in original post

0 Kudos
135 Views
larson
Contributor III

Thanks chip,  thanks for your help!

We test and trace the out put, here is the message:

PID:00400002 TID:07D70002 +OEMGetRealTime

PID:00400002 TID:07D70002 +OEMGetRealTime  time.QuadPart = 258029085

PID:00400002 TID:07D70002 +OEMGetRealTime  ft.dwLowDateTime = -1415172992, ft.dwHighDateTime = 30357901

PID:00400002 TID:07D70002 -OEMGetRealTime( 2014/3/6 22:44:45.000)

PID:00400002 TID:07D70002 +OEMGetRealTime

PID:00400002 TID:07D70002 +OEMGetRealTime  time.QuadPart = 258025485

PID:00400002 TID:07D70002 +OEMGetRealTime  ft.dwLowDateTime = 1239532672, ft.dwHighDateTime = 30357893

PID:00400002 TID:07D70002 -OEMGetRealTime( 2014/3/6 21:44:45.000)

When the OEMGetRealTime read the Time, the out put will show me a message about the time, but when the system time jumped, the dwLowDateTime will changed, like  negative number turn to positive number, or positive number  turn to negative number.  So, why? Is this change lead to the System Time error? 

0 Kudos
135 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi larson

time issues may be related to i.MX53 SRTC erratum

ENGcm12374 SRTC loses data while powering up/down.

So it may be recommended to use external timer chip.

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos