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.