| Electronic Components Datasheet Search |
|
SW4STM32C Datasheet(PDF) 64 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
SW4STM32C Datasheet(HTML) 64 Page - STMicroelectronics |
|
64 / 99 page ![]() Printf debugging AN4989 64/99 DocID030181 Rev 2 Figure 44. IAR™ SWO Clock setting Once configured, IAR™ 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 59) #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 45. In Projet Option -> Debug -> Probe Settings -> Trace Pane: 1. Tick Trace Enable 2. Enter correct Core Clock 3. Enable ITM Stimulus Port 0 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |