Bug report: _time_delay() sometimes blocks for very long

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

Bug report: _time_delay() sometimes blocks for very long

跳至解决方案
906 次查看
richarddonkin
Contributor III

Hello Freescale,

 

I am using MQX 4.0.2. I was using the _time_delay() function to loosely schedule tasks to perform their duties in a periodic way.

 

I encountered an infrequent bug where _time_delay() would block for a much longer time than specified, perhaps a hundred times as long or longer. I have not found the cause of the bug, but I can confirm that using MQX's _timer_start_oneshot_after() + _taskq_suspend() + _taskq_resume() solves the issue for me. That means the same sort of timing error is not present in the timer module.

 

For reference, I have included my own delay_ms() function's source code, which seems to work properly.

 

Best regards,

Richard Donkin

Original Attachment has been moved to: Scheduler_Delay.hpp.txt.zip

Original Attachment has been moved to: Scheduler_Delay.cpp.txt.zip

Original Attachment has been moved to: Simple_Map.hpp.txt.zip

标记 (3)
0 项奖励
回复
1 解答
508 次查看
richarddonkin
Contributor III

Thank you Carlos. I will submit it as a Service Request as well next time.

Best regards,

Richard

在原帖中查看解决方案

0 项奖励
回复
2 回复数
508 次查看
Carlos_Musich
NXP Employee
NXP Employee

Thank you for sharing your solution (work around) in the community Richard,

Any time you think you find a bug I recommend to submit a Service Request at our web page www.freescale.com/support this way technical support team can evaluate the case and report it to development team. I will take a look to it and submit a report if necessary.

Regards,

Carlos

0 项奖励
回复
509 次查看
richarddonkin
Contributor III

Thank you Carlos. I will submit it as a Service Request as well next time.

Best regards,

Richard

0 项奖励
回复