PIT0 timer stops interrupting!! CW10.2, K10

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

PIT0 timer stops interrupting!! CW10.2, K10

595 Views
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 Kudos
1 Reply

366 Views
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