Rtos event fail

Hello Team,

I am working on EC200U module and for our applications we have created multiple task .
To communicate between task , we are using rtos event.
Following API’ we are using “ql_rtos_event_send”.

Following issue we are facing:

  1. Sometimes we get error response for “ql_rtos_event_send” api.
    In the debug logs we get following message
    “ql_rtos_event_send 369 send event failed, target task has 10 events”.

We tried to increase the number events for target tasks but the same issue occurs.

Could please guide us to solve this issue.

Hi, How many events are configured in your task? Please increase the last parameter of ql_rtos_task_create
like this:

Hi Kelly,

We have configured following events in ql_osi_def.h files

//next is reserved for app to add event id!
QL_EVENT_APP_START           = 1 | (QL_COMPONENT_APP_START<<16),//app event start
TEST_1_EVT,
TEST_2_EVT,
TEST_3_EVT,
TEST_4_EVT,
TEST_5_EVT,
TEST_6_EVT,
TEST_7_EVT,
TEST_8_EVT,
TEST_9_EVT,
TEST_10_EVT,
TEST_11_EVT,

QL_EVEN_MAX                  = 0xFFFF | (QL_COMPONENT_MAX<<16),//event max

We have also increased event size in every thread to 16.
After doing above modifications, we are receiving following on cool watcher
“ql_rtos_event_send 355 invalid param” and “ql_rtos_event_send 369 send event failed, target task has 16 events” .

  • Why change ql_osi_def.h files ? method of application:ql_event_t audio_event; ql_rtos_event_send(audio_task, &audio_event);

Hi Kelly,

Thanks. We will go through audio application.