Hi Sir,
Normally, the printf() may show the message to UART_0, is there any way we can re-direct the message of printf() to UART_1?
in other words, can we choose the UART_0 or UART_1 to show message when call printf()?
Thank you.
BRs, Han
Hi Sir,
Normally, the printf() may show the message to UART_0, is there any way we can re-direct the message of printf() to UART_1?
in other words, can we choose the UART_0 or UART_1 to show message when call printf()?
Thank you.
BRs, Han
Hi,
The printf() call is retargeted to app_uart_put in retarget.c, that means that printf will use the UART instance used by app uart. This can be changed to UART 1 instance by setting APP_UART_DRIVER_INSTANCE in sdk_config.h to 1. You will also need to set UART1_ENABLED to 1.