Hi, in older SDK there seemed to be a simple way to redirect stdout (simple_uart.h), but in SDK 11 I cannot find these functions. What is the recommended/minimal way to redirect stdout in SDK 11?
Hi, in older SDK there seemed to be a simple way to redirect stdout (simple_uart.h), but in SDK 11 I cannot find these functions. What is the recommended/minimal way to redirect stdout in SDK 11?
Hello Alexander,
You may use the retarget.c under the path "/components/libraries/uart/", which can redirect the standard output to the UART.
But remember to initialize the UART first and using the app_uart_fifo module.
If you just want to print the log through UART, maybe you can reference "Experimental: UART/RTT logging" in the infocenter.
Hello Alexander,
You may use the retarget.c under the path "/components/libraries/uart/", which can redirect the standard output to the UART.
But remember to initialize the UART first and using the app_uart_fifo module.
If you just want to print the log through UART, maybe you can reference "Experimental: UART/RTT logging" in the infocenter.