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.

LP-EM-CC2340R5: How to add another thread within example application (SDK version 8.10.00.55)

Part Number: LP-EM-CC2340R5

Tool/software:

Dear support team,

I have added another thread in addition to BLEAppUtil_Task.

But when I want to send the message via queues, seems it does not work.

I am enqueuing message with 'mq_send', it could not receive the message in the app created task.

The queues and thread are created successfully.

Regards.

Rasikraj.

  • Hi Rasikraj,

    Thank you for reaching out. Can you confirm the SDK version you are using? We will take a look at your question and get back to you as soon as possible.

    Best Regards,

    Jan

  • Hello Jan,

    SDK version is mentioned right in the subject line.

    To help out you further => 

    SDK version 8.10.00.55

  • Hello Rasikraj,

    Could you please share how and where in the code you are creating the new task (I would assume in main_freertos.c)? I would suggest to take a look at this section of the User's Guide. In addition, please see the section about ICall (the Messaging and Thread Synchronization functions provided by ICall enable an application to communicate with the BLE5-Stack in the multithreaded FreeRTOS environment).

    BR,

    David.

  • Hello David,

    As mentioned before, I created another thread (similar to BLE app task)

    It is initialized and called from appMain() and another separate app module which would run this task / thread.

    Now, I want, event messages to be sent and received (via mq_send & mq_recive) from BLE app task e.g. (therefore, I assume there is no need of "Icall")

    I can see this new task created is initialized correctly but when mq_send is called (e.g. from app BLE task), I can not receive this message with mq_receive within newly created another application module's task (diag_Task).

    Regards.

    Rasikraj.