How to enable warning if a function's maximum stack usage exceeds a value?
I'm using STM32CubeIDE to develop a FreeRTOS application. Sometimes FreeRTOS reports stack overflow for a task at run time.
STM32CubeIDE's Static Stack Analyzer is very useful for analyzing the problem. Even so, I would prefer avoiding the problem at compile time. I need the compile tools to report a warning when a task function's maximum stack usage exceeds a value.
Is Static Stack Analyzer implemented in STM32CubeIDE, or is it implemented in a standalone tool like gcc/objdump/readelf? How to enable the warning if a function's maximum stack usage exceeds a value, either via graphic or command line option? Thanks very much.
