Why does my STM32CubeIDE -> Window -> Show View -> FreeRTOS -> FreeRTOS Task List -> FreeRTOS Task List -> Stack Usage only show 1/4 of the actual usage in percent for Tmr_Svc?
I'm working with the "NUCLEO-U575ZI-Q" development board and I compile using STM32CubeIDE 1.11.0. My project uses FreeRTOS and I have clicked Window -> Show View -> FreeRTOS -> FreeRTOS Task List. When I look at the Stack Usage for Tmr_Svc it appears that it reports 4 times as much than what has been truly allocated, resulting in the usage percent being one quarter of what it should be. So, if I truly allocate 256 bytes (configTIMER_TASK_STACK_DEPTH 256) of stack for Tmr_Svc and end up using 128 bytes of it, then this column will show 128/(4 x 256 + 4) = 12.5% when the true usage is actually 50%. What am I doing wrong?
