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.

TSK_sleep()

Hi,

 I am running couple of tasks on Piccolo 028. My two tasks run fine but they do not use TSK_sleep() - they block on semaphores. The third task just needs to sleep for couple of ticks, toggle pin and repeat this indefinitely:

Void safety_task(Arg id_arg)

{

 

 while (1)

 {

 TSK_sleep(10);

 TOGGLE_RED;

 }

}

It looks like TSK_sleep() never returns? My PRD setting is

bios.TSK.DRIVETSKTICK = "PRD"; all tasks are created statically....

 

Thanks for your thoughts

  • Hi mark tverskoy,

    Which version of BIOS and CCS are you using?

    If you are using CCSv4 or CCSv5 ...

    Can you check to make sure your systemTick is incrementing under ROV.  Its located under the KNL module.

    While you are there make sure that your 'stackPeak' isn't larger than your 'stackSize.  You might want to check this for your Tasks also just to make sure your stacks aren't overflowing.

    Steve