MQX Periodic timer stops

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX Periodic timer stops

902 Views
aussiemate
Contributor II

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?

Tags (1)
0 Kudos
Reply
2 Replies

744 Views
Carlos_Musich
NXP Employee
NXP Employee

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

0 Kudos
Reply

744 Views
aussiemate
Contributor II

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?

0 Kudos
Reply