cancel
Showing results for 
Search instead for 
Did you mean: 

How is Gprof editor supposed to work in STM32CubeIDE?

yakabmarci
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
yakabmarci
Senior

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....

View solution in original post

1 REPLY 1
yakabmarci
Senior

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....