EasyManuals Logo

STMicroelectronics STM32 User Manual

STMicroelectronics STM32
118 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #74 background imageLoading...
Page #74 background image
Printf debugging AN4989
74/118 AN4989 Rev 3
Figure 52. IAR™ EWARM SWO Clock setting
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
Section 7.2: Printf via UART on page 69)
#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
Figure 53.
In Projet Option -> Debug -> Probe Settings -> Trace Pane:
1. Tick Trace Enable
2. Enter correct Core Clock
3. Enable ITM Stimulus Port 0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

STMicroelectronics STM32 Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM32
CategoryMicrocontrollers
LanguageEnglish

Related product manuals