Compiling for debug
AN4989
36/118
AN4989 Rev 3
3.1.3 STM32CubeIDE
In project
Properties->Settings->Tool Settings->MCU GCC Compiler->Optimization
Figure 20. STM32CubeIDE optimization level setting
gcc also provides the -Og option:
-Og enables optimizations that do not interfere with debugging. It offers a reasonable level
of optimization while maintaining fast compilation and a good debugging experience.
3.2 Debugging
information
Debugging information is generated by the compiler together with the machine code. It is a
representation of the relationship between the executable program and the original source
code. This information is encoded into a pre-defined format and stored alongside the
machine code.
Debugging information is mandatory to set breakpoint or get the content of a variable.
This chapter presents the location of the Debugging Information related option in IAR
Systems
®
, Keil
®
, and STM32CubeIDE.
Содержание STM32 Series
Страница 46: ...Connecting to the board AN4989 46 118 AN4989 Rev 3 Figure 30 Keil hotplug step2 ...
Страница 91: ...AN4989 Rev 3 91 118 AN4989 Debug through hardware exploration 117 Figure 69 STM32F4 F7 dual MCO capabilities ...
Страница 103: ...AN4989 Rev 3 103 118 AN4989 Managing DBGMCU registers 117 Figure 78 Generator Options debug MCU in STM32CubeIDE ...