MQX Lite + Timerint = crash

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

MQX Lite + Timerint = crash

跳至解决方案
1,474 次查看
Alberto_g
Contributor III

KL25 Freedom board, with CW 10.3.

I start a new project, add MQX lite and create two tasks. It works as it should.

Then I add a TimerInt component, say using Periodic interrupt source PIT_LDVAL0, but other sources do the same thing.

When the Interrupt period is somewhat high, like 200 msec, everything is fine.

Things go wrong when the period is shorter, like 1 msec. The program crashes and the debugger shows it is stuck in dispatch.S close to

ASM_LABEL(no_one_to_run)

It does not matter what's inside the OnInterrupt function, even an empty function shows the problem.

Oddly, it seems that a single MQX task makes the program behave correctly.

Any idea?

Thank you

Alberto.

0 项奖励
回复
1 解答
1,197 次查看
petr_uhlir
NXP Employee
NXP Employee

Hi Alberto,

I have checked your project with official CW 10.3 release and it works without any crashes. You are probably working with some older version so upgrade.

Regards Petr

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,197 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Could you post some simple demo project reproducing the problem?

best regards

Petr Hradsky

Processor Expert Support Team

1,197 次查看
Alberto_g
Contributor III

Thank you for your interest.

I attach a simpler program. This one seems to crash in every condition.

Regards

Alberto

0 项奖励
回复
1,198 次查看
petr_uhlir
NXP Employee
NXP Employee

Hi Alberto,

I have checked your project with official CW 10.3 release and it works without any crashes. You are probably working with some older version so upgrade.

Regards Petr

0 项奖励
回复