Using software serial for debug so I can use Uart0 for peripheral
Posted: Sat Aug 22, 2020 10:22 pm
Hi all
I need to connect to three serial devices and also want to connect to debug so see the logs. Is it possible to use some software serial library say that outputs at 9600 and use the UART0 for the peripheral. Unfortunately I cannot add an external UART IC or swap a hardware UART quickly between the peripherals
The TXD0 and RXD0 pins are connected to programming/debug port. I am hoping that at startup the code can switch the debug over to software UART on TXD0 Pin while the hardware is re-directed to PIN26/27 on my custom board
I see some people have used something on these lines for Arduino but I cannot find an IDF example.
Thanks
I need to connect to three serial devices and also want to connect to debug so see the logs. Is it possible to use some software serial library say that outputs at 9600 and use the UART0 for the peripheral. Unfortunately I cannot add an external UART IC or swap a hardware UART quickly between the peripherals
The TXD0 and RXD0 pins are connected to programming/debug port. I am hoping that at startup the code can switch the debug over to software UART on TXD0 Pin while the hardware is re-directed to PIN26/27 on my custom board
I see some people have used something on these lines for Arduino but I cannot find an IDF example.
Thanks