Tool/software: Code Composer Studio
I created 2 threads, one which polls a sensor and another which is a Simplelink RF thread to transmit this data. Whenever the rfThread calls Task_sleep when sensorThread is also calling it, Task_sleep just blocks either very long or longer than specified (in which it eventually returns but took much longer).
When I remove all instance of Task_sleep in the sensorThread, rfThread works just fine. I saw some online solutions about checking stack usage using ROV, I confirmed there is enough stack allocation. I initiated the threads using Pthread. Any suggestions on how to debug this?