I'm trying to use the console example on UART1 and keep the logging functionality on UART0. I modified the console.c code to use UART1 like so:
Code: Select all
/* Install UART driver for interrupt-driven reads and writes */
ESP_ERROR_CHECK( uart_driver_install(/*CONFIG_CONSOLE_UART_NUM*/ 1,
256, 0, 0, NULL, 0) );
/* Tell VFS to use UART driver */
esp_vfs_dev_uart_use_driver(/*CONFIG_CONSOLE_UART_NUM*/ 1);
It looks like Linenoise and LOG might be using the same stdin/stdout/stderr.This is an example of ESP-IDF console component.
Type 'help' to get the list of commands.
Use UP/DOWN arrows to navigate through command history.
Press TAB when typing command name to auto-complete.
>
>
...
> ;1R;3R;;1R;3[25R;1[25R;1R;1R25R;1R;1R;3R;1R;1R;3R3R;1R;1R;3R;1R;1R;3R;1R;1R;3R;1R;1R;3R
Unrecognized command
>
>
Is there a way to redirect the printf() streams, create new streams or make the LOG and console coexist on differnet UARTs?
=]