I have the exact same problem as this previous post:
The events are not fired when I do a Mailbox_post.
I have initialized my events and mailbox properly:
Event_construct(&mNetworkEventStruct, NULL); mNetworkEvent = Event_handle(&mNetworkEventStruct); // Create mailboxes (queues) for commands and messages Mailbox_Params_init(&mCommandMailboxParams); mCommandMailboxParams.readerEvent = mNetworkEvent; mCommandMailboxParams.readerEventId = QUEUE_EVENT_COMMAND; // Create Network Command Queue mCommandMailbox = Mailbox_create(sizeof(NetworkCommand), NETWORK_COMMAND_QUEUE_LENGTH, &mCommandMailboxParams, NULL);
I am posting to the Mailbox (it reaches the Mailbox_post when stepping through the code).
Mailbox_post(mCommandMailbox, &command, MAX_NETWORK_DELAY);
And I am doing the Event_pend as shown below. When stepping through the code, I see that the task reaches the Event_pend, but never returns.
// Wait for a new event UInt events = Event_pend(mNetworkEvent, QUEUE_EVENT_NONE, // AND events (QUEUE_EVENT_COMMAND | QUEUE_EVENT_MESSAGE), // OR events BIOS_WAIT_FOREVER);
In the post mentioned above, they say to add the following line in the configuration file:
Semaphore.supportsEvents = true;
When I add this line and re-build, I get the error below (I only included the first line because it is very long and only shows many paths and options).
Error while running "c:\ti\xdctools_3_30_06_67_core/xs" --xdcpath="C:\ti\tirtos_simplelink_2_11_01_09\packages;C:\ti\
Surprisingly, when I change Semaphore.supportEvents to false, it compiles properly.
What am I doing wrong?
Thank you in advance.