This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642R: Sending a Mailbox_post event to multi role thread

Part Number: CC2642R

Hello,

As the title suggests, I took the multi_role example (SDK: CC13x2 26x2 SDK 5.10.00.48), added another thread and used a mailbox to send data between threads. That all worked well enough, but then I wanted that the thread that posts data to the mailbox will create an event for the multi_role thread so that multi_role will check the mailbox. I tried defining the mailbox in multi_role_init and sending syncEvent to it as the event handle:

But this didn't work.

Basically I'm trying to create an API thread to receive commands over UART, which will then do certain actions in the multi_role thread. The API thread will post/read data from a mailbox and the multi_role thread will wake up and execute whatever is needed. I could simply build a clock in the multi_role thread to wake up every x amount of time and check the mailbox, but I would still rather be using events.

Any suggestions?