Printf debugging
AN4989
80/118
AN4989 Rev 3
Semihosting depends on the library provided by the IDE. The next sections present how to
set semihosting using the three main IDEs covered in this application note.
7.4.1 IAR™
EWARM
IAR™ EWARM provides a highly integrated semihosting feature, enabled by default.
shows how to check if it is the case for the project in
Options -> General options
-> Library Configuration Pane.
Figure 59. Semihosting configuration in IAR™ EWARM
In such a case, simply use
printf()
/
scanf()
functions in the code.
Input and output of the program are displayed in the Terminal I/O window.
7.4.2 Keil
®
MDK-Arm µVISION
Keil
®
has no semihosting capability.
Содержание 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 ...