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.

RTOS/CC2640R2F: Task and priority confusion

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi there,

based on the SimplePeripheral I am building a project to control a robot toy. The robot functionality is supposed to run in its own task. However, I experienced as soon as I am using this setup, the SimplePeripheral task does not start advertising nor does it work at all. I have reduced the Robot task to an empty for(;;); loop and played with the priorities.

The SPP fires up only when the robot task has the priority 0. Even the same priority then SPP task (1) prevents the device from BLE activities. I have not yet changed anything at the SPP part of the sample project

What do I wrong? Why does even the same priority not work?

Can I give the SPP task a higher priority then 1 (but below ICALL)?

Are there R-TOS functions I can use to simply give control back to the scheduler? I tried to find this hint in the documentation, but could not locate any in decent time and effort.

Thank you for helping out

best wishes

Ralph

  • Hi,

    I would recommend you to take a look at the SimpleLink Academy RTOS training

    http://dev.ti.com/tirex/nodeContent?node=AHxv--RBRKmEZioO0JEGGA__krol.2c__LATEST

  • Sorry, this does not answer my question.

    But thanks for pointing to this piece of doc and to make it clearer what I want to achieve. it says "... The TI-RTOS kernel supports time-slicing scheduling with Tasks if desired. " So how to in the event driven SPP example project? This requires a function giving back the control to the scheduler bur to stay in the loop to get computation time WITHOUT any event.

    This requires you to understand how the TI-R-TOS scheduler works.

    Obviously I could setup a timer SWI and use task sleep and get called when the SWI kicks in, but why an hard to read source code when any R-TOS does have an timer driven scheduler and real time is not required.

    It would also nice to know where I can find a SEARCHABLE doc about all the TI-R-TOS functions.

    Thank you for any effort

    Ralph

  • All the documentation can be found either online or offline in the SDK.

    For online version, you can go to dev.ti.com/tirex and find the corresponding SDK version.

    For the offline version, you first need to download the SDK, then you should be able to find all documentation on 

    \ti\simplelink_cc2640r2_sdk_x_xx_xx_xx\docs\tirtos