I am using freeRTOS API uxTaskGetStackHighWaterMark(NULL) to calculate the stack consumption of each task. I placed this API in while(1) of each task so that I can get the perfect runtime stack usage of each task.
I need to calculate stack consumption of ControllerTask which internally calls Controller_TaskHandler((void *) NULL).
As the Controller_TaskHandler((void *) NULL) is library function call, it is not accessible to us.
Where can I use the uxTaskGetStackHighWaterMark(NULL) API to calculate the stack consumption of ControllerTask? Is there any callback from ControllerTask where I can use this API?
Thank you in advance :smileyhappy: