Skip to main content
yakabmarci
Associate III
Jan 30, 2026 9:53 AM UTC
Solved

How is Gprof editor supposed to work in STM32CubeIDE?

I am trying to use the gprof editor/viewer within cubeide but it doesn't work, everything just freezes then crashes with no error messages, i also found nothing in the logs

I'm trying to use gprof profiling arm-none-eabi-gprof.exe, i have my code instrumented and got a valid gmon.out file, it is small ~15kb, the file is valid as i can process is manually with gprof.exe and get a textual representation of the profiling data.

However i don't want text output, i want the included viewer in the cubeide, to see in a nice tree view the data, i have the option to open the gmon.out file with the gprof editor but when i do, it asks for the corresponding elf file then after that everything freezes then crash.

 

What am i doing wrong? Is this expected to work at all? Did anyone use it?

Cube ide1.18 stm32f429 discovery project

yakabmarci
yakabmarciBest answer
Associate III
Jan 30, 2026 3:32 PM UTC

found the solution for it

in the settings in "Linux Tools Path" you have to enter the path where your arm-none-eabi-gprof.exe is located

for the prefix: arm-none-eabi-

then all works, file is loaded correctly, can be visualized in the gprof viewer, generate graph and so on....

1 reply

yakabmarci
yakabmarciAuthorBest answer
Associate III
Jan 30, 2026 3:32 PM UTC

found the solution for it

in the settings in "Linux Tools Path" you have to enter the path where your arm-none-eabi-gprof.exe is located

for the prefix: arm-none-eabi-

then all works, file is loaded correctly, can be visualized in the gprof viewer, generate graph and so on....