I am using an MCU with cortex-m33 processor with trust zone enable, and running scheduler on non-secure side by setting configENABLE_TRUSTZONE to 1.
I have few tasks created which jumps to secure side as well. Allocated secure stack for tasks using portALLOCATE_SECURE_CONTEXT().
Now i want to check stack overflow and maximum stack depth reached using uxTaskGetStackHighWaterMark, using method 2 for [configCHECK_FOR_STACK_OVERFLOW].
Issue: Not able to get the maximum stack depth of secure side stack of any task.