Tool/software: TI-RTOS
I am working on CC2640R2F and I am having stability issues, such as the application deadlocks, stalls or hangs at a Hwi or somewhere else. Since I wish that my application to recover in those cases, I enabled watchdog and it is functioning. Furthermore, I enabled the UART prints so that I can log some information to debug the problem. Now I am having problem to print the currently running Tasks and their states. Furthermore, I would like to print their call stacks using UART if possible.
I tried using "Task_Object_count()" to get the total number of tasks but it returned only 1, instead there are 5. Moreover, I tried to get first task handle using "Task_Object_first()" and tried to reach other tasks using "Task_Object_next()", however I can only reach only 1 task again.
Is there an easy way to get the task handles (instead of getting the handles where they are created) at watchdog callback function? Is it possible to get their call stack at watchdog callback function?