| Electronic Components Datasheet Search |
|
SW4STM32C Datasheet(PDF) 60 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
SW4STM32C Datasheet(HTML) 60 Page - STMicroelectronics |
|
60 / 99 page ![]() Printf debugging AN4989 60/99 DocID030181 Rev 2 Figure 41. USART2 setting with STM32CubeMX Retargeting printf to UART depends on the toolchain. For IAR™ EWARM and Keil® MDK-ARM µVISION this is done by overriding the stdio fputc function #include "stdio.h" int fputc(int ch, FILE *f) { HAL_UART_Transmit(&UartHandle, (uint8_t *)&ch, 1, 0xFFFF); return ch; } For GCC based toolset like SW4STM32, two cases can be met. With syscall.c integrated to the project: #include "stdio.h" int __io_putchar(int ch) { |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | 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 |