Disable UART due to pins shorted

iParcelBox
Posts: 23
Joined: Sun Oct 27, 2019 3:12 pm

Disable UART due to pins shorted

Postby iParcelBox » Tue Nov 03, 2020 3:54 pm

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!

iParcelBox
Posts: 23
Joined: Sun Oct 27, 2019 3:12 pm

Re: Disable UART due to pins shorted

Postby iParcelBox » Tue Nov 03, 2020 5:31 pm

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?

Who is online

Users browsing this forum: Baidu [Spider], ShinyGlossy and 220 guests