problem with runnint timer interrrupt in RTX kernel(stm32 discovery)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-20 11:32 AM
Posted on January 20, 2014 at 20:32The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-21 2:38 AM
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-24 9:07 AM
Posted on January 24, 2014 at 18:07
man, thanks
it solved.