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.

TIRTOS - with two task only one runs

Hi there,
I use RTOS 2.0.1.23 and CCS 6.0.0.00190 and want to create two static tasks. The first task should toggle the Board_LED0 (This task is just for testing, later it will get a usefull functionality). The second task provides a tcpEcho functionality.

The task runs if I disable the other one. If I run both task the LED0 Blinky task is allways blocked.

I don't know where my fault is. Can someone explain me what I have to change, so that both task a running.

I add my Project.3250.myTests.rar

Thanks Chris

  • Chris,

    Looking at your code, I don't think LED0 will ever blink or maybe once in a pretty long time. The condition:

    if(count > 10000000) would take forever with the delays from the Task_sleep and the other tasks that are being run. If you make the change from 10000000 to say 1000, you should see the LED blink. Without changing anything in your code, I checked and confirmed that the blinky task wasn't blocking forever. Also we have a GPIO_toggle function that you could use instead of performing 2 GPIO_write calls.

    Let me know if you have other questions.

    Moses