Figure 52. Iar™ Ewarm Swo Clock Setting - STMicroelectronics STM32 Application Note

Microcontroller debug toolbox
Hide thumbs Also See for STM32:
Table of Contents

Advertisement

Printf debugging
Once configured, IAR™ EWARM properly sets TRACE_IOEN and TRACE_MODE and
configures the related GPIO.
SWO printf occurrences are visible in Terminal I/O windows.
Port Stimulus 0 is used by printf and scanf. It is not configurable.
®
Keil
MDK-Arm µVISION:
In MDK-Arm it is required to redirect printf to SWO by some piece of code following same
model as for UART (Refer to
#include "stdio.h"
int fputc(int ch, FILE *f)
{
ITM_SendChar(ch);
return(ch);
}
®
Keil
must be properly configured for the SWO communication to be properly set. An
example is given in
In Projet Option -> Debug -> Probe Settings -> Trace Pane:
1.
Tick Trace Enable
2.
Enter correct Core Clock
3.
Enable ITM Stimulus Port 0
74/118
Figure 52. IAR™ EWARM SWO Clock setting
Section 7.2: Printf via UART on page
Figure
53.
AN4989 Rev 3
AN4989
69)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF