I have a 250ms periodic timer that is supposed to run forever, to update my display.
I have found that after a week or so this timer stops. and no longer updates the display.
_timer_start_periodic_every(user_interface_timer_expired, NULL ,TIMER_ELAPSED_TIME_MODE,250 );
Has anyone had issues with the Timers stopping?
Hi Matthew,
this case seems difficult to recreate... You can run your application and wait until it fails. Once it fails you can attach the debugger (hot sync) and check with the MQX TAD (task Aware Debugger) the status of tasks, stack and error codes.
What IDE are you using?
You can also turn on Kernel Log and review it when it fails. You can find an example in with documentation in MQX installation path:
Classic MQX: C:\Freescale\Freescale_MQX_4_2\mqx\examples\klog
MQX for KSDK: C:\Freescale\KSDK_1.3.0\rtos\mqx\mqx\examples\klog
Regards,
Carlos
I notice that there is a function _timer_test
How & why is this there?
Do we need to assume that the timers are going to become corrupted at some point and test for a corruption?
How would one go about this?