cancel
Showing results for 
Search instead for 
Did you mean: 

Debug or Release elf file

jpo92
Associate II

(Windows 10 x64, TrueStudio v9.1.0, STM32CubeMonitor v1.0.0)

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

Yes, think so. In STM32CubeIDE check Project > Properties > C/C++ build > Settings > Tool Settings / MCU GCC Compiler > Debug

The debug level defines the amount of debug information stored in the .elf. Release sets this to none, so variable names are unknown to STM32CubeMonitor.

Try changing this to -g3. Does that help?

For other IDEs/tool there are similar options.

View solution in original post

5 REPLIES 5
jpo92
Associate II

Sorry, (Partial question)

Dears,

In variables node / exe-config folder it is possible to select 'Release' folder and an elf file, but parsing has no effect to display variables list.

With elf in 'Debug' folder it is ok.

Is it normal?

KnarfB
Principal III

Yes, think so. In STM32CubeIDE check Project > Properties > C/C++ build > Settings > Tool Settings / MCU GCC Compiler > Debug

The debug level defines the amount of debug information stored in the .elf. Release sets this to none, so variable names are unknown to STM32CubeMonitor.

Try changing this to -g3. Does that help?

For other IDEs/tool there are similar options.

jpo92
Associate II

Hello KnarfB,

It's working fine.

Thanks

Jean

Not sure if -g3 has implications on code optimization. It shouldn't, but if you observe performance issues, pls. double-check.

jpo92
Associate II

Hello,

In TrueStudio there are 4 options (none, default -g, minimal -g1, maximun -g3)

Only '-g' et '-g3' lists variables in elf file.

Thanks for your help.

Jean