Event Queue Full / RiCTask_execute in ISR?
Event Queue Full / RiCTask_execute in ISR?
22.10.2009 11:02
We use the OORTX in combination with the easyGUI library. The easyGUI library needs a lot of time (25ms-55ms) to update datas. At this time the RiCTask_execute won't be executed, so in some cases the RiCEventQueue gets full (more than 100 events). Is it possible to to place the RiCTask_execute in the Timer ISR (where the RiCTick is processed) over a semaphore, when the easyGUI task is blocking the system? Do you think it is a possible way to execute the RiCTask_execute alternate from two places (main loop and ISR), when a function is blocking the OORTX? At the moment I can't reduce the easyGUI task time.
Re: Event Queue Full / RiCTask_execute in ISR?
23.10.2009 17:09
Hi Cyman, my friend!
Long time no hear!
Unfortunately, your questions is not very easy to solve. This is exactly the situation where people need an RTOS for..... with an RTOS (and an RTOS Bridge) you can safely do this, when the priority of easyGUI is lower then the priority of the rest of your app it will be interrupted if necessary.
Other solutions are all very dangerous since the OO-RTX is not re-entrant (It shouldn't be, it is not preemptive) therefor, letting the framework run in the IRQ might not be a good idea.
Off course it is possible to tweak the OO-RTX into doing that but it involves a lot of work.
Isn't there a way to split up the EasyGUI tasks?
Many greetings
Walter
Re: Event Queue Full / RiCTask_execute in ISR?
24.11.2009 13:45
Hi Walter,
I solved the problem. There where some reasons for this issue. First thing was to split EasyGUI tasks and cyclic update display datas. Second was to increase speed of the external Flash (now ca. 8ms). And at last there was a big bug in an ISR, where in some cases continuous CGEN_ISR was called.
Since I have fixed the problem, the software works fine with the OO-RTX and I could also reduce the WSTMaxEvents to 30!
Kind regards
Cyman
Re: Event Queue Full / RiCTask_execute in ISR?
25.11.2009 17:01
Hi Cyman
Cool, my friend!! Seems like a real step forward in your model.
Hope to see you soon!
Walter
