External RTC RRS feed

  • Question

  • Hi,

    I am working on external RTC on WEC7. I have modified OAL to read/write from I2C RTC. 

    Here, OEMGetRealTime function is not getting called and if I change the time on desktop, it's writing twice to RTC. One the changed value and again back to reset value. Any guess why its happening like this? 

    And the changed time is not at all getting reflected on WEC7 desktop. 



    Tuesday, January 20, 2015 2:09 PM

All replies

  • You're saying that you call GetSystemTime() and OEMGetRealTime() isn't being called? The only instances where I've seen this were when OEMGetRealTime() had the wrong signature in the OAL. This could be caused by an incorrect declaration in header file, missing extern "C" marker, etc.

    As I recall, the old time gets rewritten if the first call to OEMSetRealTime fails (returns FALSE).

    Paul T.

    Wednesday, January 21, 2015 8:14 PM