cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable "Min Free Stack" and "Run Time (%)" in STM32CubeIDE?

YoungKim
Associate III

I am trying to add more information in my debugging. And I found information about "Min Free Stack" and "Run Time (%)" is missing in "FreeRTOS Task List":

0693W00000JPyfKQAT.pngI googled this, and found something like this for example. but I couldn't find any explanation to do this by using "ioc" GUI.

My board is nucleo-f767zi.

If I have to define these two lines:

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()    vConfigureTimerForRunTimeStats()
#define portGET_RUN_TIME_COUNTER_VALUE()            vGetTimerForRunTimeStats()

how can I define vConfigureTimerForRunTimeStats() and vGetTimerForRunTimeStats() by combination of using ioc file and source file? Or is there any other way?

1 REPLY 1

Hello @YoungKim​ ,

Min Free Stack column is disabled by default. To enable stack analysis use the Toggle Stack Checking toolbar button in the FreeRTOS Task List view toolbar.

Take a look at this document (section 6.2.3) : STM32CubeIDE user guide - User manual

This might help you.

BeST Regards,

Walid