Page 1 of 1

Disable UART due to pins shorted

Posted: Tue Nov 03, 2020 3:54 pm
by iParcelBox
Hi,

I have a situation where the power adapter I'm using (usb) results in the UART0 Tx and Rx pins being shorted - and as a result my device is failing to boot correctly.

Is there a way that I can forcibly disable the Tx Rx on UART0 on boot so that I can avoid this problem? I could set them as I/O pins and test whether they are connected before eabling UART again.

Many thanks!

Re: Disable UART due to pins shorted

Posted: Tue Nov 03, 2020 5:31 pm
by iParcelBox
I've identified that setting `CONFIG_CONSOLE_UART_NONE` in my config solves the reboot problem, but obviously prevents me from being able to turn on debugging when a 'normal' cable is connected. Is there any way in the ESP-IDF I can set the equivalent of `CONFIG_CONSOLE_UART_NONE` after the device has booted, so it boots by default with console turned off and then turns it back on if a continuity test across Rx Tx passes OK?