How do I run CLI console and default log of esp32 on two seperate UARTs?
Posted: Tue Apr 20, 2021 12:25 pm
Hello,
In my project I have to develop CLI console using UART1. for that I used esp-idf/examples/system/console example.
- It works fine I can run it on both the uarts UART0 as well as UART1.
- I can successfully change the default console uart from menuconfig.
Currently, I am getting both the CLI console and debug logs on same UART (Whichever uart we select from the menuconfig).
what I require is:
- How to separate CLI console on UART1 and debug logs on UART0?
- Is it possible to have CLI console on UART1 without setting it as a default UART?
- Is there any way I can switch default UART in run time without using menuconfig?
Thank you for helping out!!
In my project I have to develop CLI console using UART1. for that I used esp-idf/examples/system/console example.
- It works fine I can run it on both the uarts UART0 as well as UART1.
- I can successfully change the default console uart from menuconfig.
Currently, I am getting both the CLI console and debug logs on same UART (Whichever uart we select from the menuconfig).
what I require is:
- How to separate CLI console on UART1 and debug logs on UART0?
- Is it possible to have CLI console on UART1 without setting it as a default UART?
- Is there any way I can switch default UART in run time without using menuconfig?
Thank you for helping out!!