AnsweredAssumed Answered

Using Processor Real Time Clock With MQX

Question asked by Tim Hutchinson on May 8, 2014
Latest reply on May 9, 2014 by Tim Hutchinson

Hi All,


     I'm using MQX on an MPC-5125 processor with the Real Time Clock (RTC) battery circuit in place and operational. Currently, every time the board is restarted the current time is reset to 01/01/1970 (MQX default start time). Is there an MQX #define statement that I can adjust in the user_config.h file to prevent MQX from resetting the time at each reset? Perhaps there's another way to prevent MQX from resetting the time at startup? Couldn't find any guidance on this in the MQXUG document (Rev 4, 12/2011) and I'm hoping to avoid modifying MQX source code to accomplish this since every time I do that I need to document the changes and restore them in the event of an MQX update. Thanks for any suggestions!