
Printf debugging
AN4989
84/118
AN4989 Rev 3
Debug configuration
In
Run -> Debug configuration -> Debugger tab
, change the debugger probe to ST-LINK
(Open OCD).
In Generator options, choose “Software system reset“as reset Mode.
Figure 63. Semihosting in STM32CubeIDE – Debug configuration
In the Startup tab enter the command: monitor arm semihosting enable.