
AT32 Printf Debug Demo
2019.08.05
18
Rev 1.0.2
2.5.4 Software
2.5.4.1 Header files
Add the
“
stdio.h
” to the code project files.
2.5.4.2 Redirect Printf
PUTCHAR_PROTOTYPE
{
USART_SendData(AT32_PRINT_UART, ch);
while ( USART_GetFlagStatus(AT32_PRINT_UART, USART_FLAG_TRAC) == RESET );
return ch;
}
2.5.4.3 MicroLIB settings
Figure 8. MicroLIB settings