Event Queue Full / RiCTask_execute in ISR?

1498 Betrachtungen
Seite: 1
Cyman
avatar
Community Member
5 Beiträge

Event Queue Full / RiCTask_execute in ISR?

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.

Walter
avatar
Moderator
23 Beiträge

Re: Event Queue Full / RiCTask_execute in ISR?

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

Cyman
avatar
Community Member
5 Beiträge

Re: Event Queue Full / RiCTask_execute in ISR?

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

Walter
avatar
Moderator
23 Beiträge

Re: Event Queue Full / RiCTask_execute in ISR?

Hi Cyman

Cool, my friend!! Seems like a real step forward in your model.

Hope to see you soon!

Walter

Seite: 1

Currently Online:

There is nobody online.

Welcome to our latest member: citeecony