I'm developing an app on a TWR-MPC5125 processor board and have found that the MQX system time loses about 1 second per minute of run time (Running under Ext Ram Debug from CodeWarrior). I have my app update the time using SNTP_oneshot() from time.nist.gov every 15 minutes and note how much time correction is required to get my MQX system time to agree with the SNTP server. My MQX system time is almost exactly 15 seconds slow at each update (5 seconds slow if I update every 5 minutes, etc). My application will need accurate time of day information to perform automation tasks at user programmed times (one second resolution is required).
I'm wondering if this can be corrected (and if it's normal to have to correct it) by calling the MQX time_set_ticks_per_sec() function? Maybe the MQX time_set_resolution() function? In addition to the basic time functions I am using a 100mS timer interrupt in TIMER_ELAPSED_TIME_MODE to take care of various housekeeping tasks (maybe timers interfere with time of day?). I'm going to experiment some but if anyone has been through this before and could offer some advice that would be great. Thanks in advance. ~Tim