MQX Periodic timer stops

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MQX Periodic timer stops

1,464 次查看
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?

标记 (1)
0 项奖励
回复
2 回复数

1,306 次查看
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 项奖励
回复

1,306 次查看
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 项奖励
回复