Skip to main content
jpo92
Associate II
March 29, 2020
Solved

Debug or Release elf file

  • March 29, 2020
  • 4 replies
  • 1603 views

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

This topic has been closed for replies.
Best answer by KnarfB

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.

4 replies

jpo92
jpo92Author
Associate II
March 29, 2020

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
KnarfBBest answer
Super User
March 29, 2020

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
jpo92Author
Associate II
March 30, 2020

Hello KnarfB,

It's working fine.

Thanks

Jean

KnarfB
Super User
March 30, 2020

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

jpo92
jpo92Author
Associate II
March 31, 2020

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