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.

Scheduling not happening in TI RTOS

Hi,

I am working on simple application based on task scheduling in CC3200. I have tried with the uart_echo example project of TI RTOS. Task scheduling is not happening it-seems.

I have tried the following scenarios:

I have created 2 tasks with the different priority.I have added System_printf in those 2 tasks to verify whether scheduling happening or not.  During startup it came to the first task and after that it was in second task only. It was not switching back to the first task.After adding Task_sleep(), task scheduling is happening.without adding Task_sleep(), task switching will not happen here?

If I give same priority for those 2 tasks also, I am getting the above results.

Is there any thing else I need to add for task scheduling?

  • Hi Sankari Mirasi,

    Can you halt the processor when this is happening?  Then, open the ROV tool in CCS (tools->ROV) and look at the Task module's (detailed) view?

    What are the states of your two Tasks?  It may help to post screen shots of this.

     The following section in the BIOS User's Guide may be useful:

    3.5 Tasks

    You can find this guide in your TIRTOS install. For example, on my machine it's here: C:\ti\TIRTOS\tirtos_tivac_2_00_02_36\products\bios_6_40_02_27\docs\Bios_User_Guide.pdf

    Steve

  • Hi Sankari Mirasi,

    Were you able to get past the above issue?  If so, would you mind please marking the post as "verified" for closure?

    Thanks,


    Steve

  • Hi Steve,

    Thanks for your response.

    I have checked the status of tasks in ROV.

    If I give different priority for the tasks, higher priority task is in running mode (it is only running)and lower priority task is in ready mode.

    If I give same priority for the 2 tasks, then the first task is in running mode,second task is in ready mode.

    Here I have attached the ROV snapshot of same priority and different priority of 2 tasks for your reference. 

    I wants to know the scheduling mechanism used in TI RTOS also.

    Regards,

    Sivasankari Mirasi.

  • Have you seen secion 3.2 "Overview of Threading Modules" in the SYS/BIOS User's Guide?  If not, please have a look at that chapter as it has a good discussion on Tasks (and other threads), including priorities and preemption.

    Steve