PIT0 timer stops interrupting!! CW10.2, K10

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

PIT0 timer stops interrupting!! CW10.2, K10

754 次查看
ignisuti
Contributor IV

I'm using FreeRTOS. This OS was using my SysTick timer. So, for my code, I utilized the PIT0 timer as my SysTick.

 

Problem is that in a few odd scenerios that I've yet to fully understand, my interrupt for this timer stops interrupting. My understanding is that the ONLY way for this to happen is if an interrupt of equal or higher priority is currently active. 

 

I set the PIT0 interrupt to have priority 0 (highest priority). But, that made no difference. 

 

Any suggestions?

0 项奖励
回复
1 回复

525 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

are you using the Processor Expert FreeRTOS version from

http://mcuoneclipse.wordpress.com/2012/05/27/freertos-v7-1-1-released/ ?

 

Is only the tick timer stopping, or all your interrupts are masked/disabled?

I have seen cases with stack overflow where the interupt masks were not correctly restored, causing interrutps disabled afterwards.

 

I suggest you increase the stack size for your tasks and make sure that there is no stack overflow.

 

Hope this helps,

BK