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.

Finding out where a task has stalled in DSP/BIOS

I periodically have problem in DSP BIOS where a task of mine has stalled and I cannot find out where.

For example if a loop like this never exits...

while (BuffERNotFull() )

   TSK_sleep(1);

I have no way of finding out that it is stuck in this particular loop. I find my self placing breakpoints everywhere in attempt to guess where the task is stuck.

Is there a way I can see the state of a task so I can see where the program counter is pointing?

Alternatively it would be nice if I could break on the code that is called just before the task is switched to so I can trace into the task to find out what it is waiting for.

-howy