cancel
Showing results for 
Search instead for 
Did you mean: 

problem with runnint timer interrrupt in RTX kernel(stm32 discovery)

s239955_stm1_st
Associate II
Posted on January 20, 2014 at 20:32

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
chen
Associate II
Posted on January 21, 2014 at 11:38

Hi

''but problem is that program works fine, before os_evt_wait_or()

just when program arrives to line 69(exactly where the task is in the wait_or() ), it stops!!!''

That is because the IRQ for the timer is not triggering and NOT sending the task message.

Check the timer setup is correct.

The timers are tricky to use if you use anything other than the basic up/down counter/reset count.

You are going to have to read and re-read the reference manual - the timer section!

''         /* Clear TIM4 Capture compare interrupt pending bit */

          TIM_ClearITPendingBit(TIM4, TIM_IT_CC2);

          /* Get the Input Capture value */

          IC2Value = TIM_GetCapture2(TIM4);''

You should do the above code in the ISR - NOT the task body.

s239955_stm1_st
Associate II
Posted on January 24, 2014 at 18:07

man, thanks

it solved.