2020-03-29 12:07 PM
(Windows 10 x64, TrueStudio v9.1.0, STM32CubeMonitor v1.0.0)
Solved! Go to Solution.
2020-03-29 12:24 PM
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.
2020-03-29 12:09 PM
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?
2020-03-29 12:24 PM
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.
2020-03-30 04:52 AM
Hello KnarfB,
It's working fine.
Thanks
Jean
2020-03-30 05:12 AM
Not sure if -g3 has implications on code optimization. It shouldn't, but if you observe performance issues, pls. double-check.
2020-03-31 02:54 AM
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