Page 1 of 1

ESP32 UART issue

Posted: Tue Feb 20, 2024 2:43 pm
by KK_Electronics_Ltd
I have a ESP32-DEVKITC-32UE board and it uses UART0 (Chan1 in Flowcode) to program via the built in USB bridge.
This works fine, but I also have a UART component in my program.
If I set that component's UART channel to anything other than chan1 (U0) - (including trying to use the software UART choice), it fails to compile/flash. This is regardless of which pins I map to TXD & RXD.
I would prefer to reserve UART0 for programming, as otherwise I'd have to keep removing zero ohm links to isolate the bridge.
My hardware requirement is to connect the UART i/o pins to another MCU - so I can't use USB.

As far as I can tell from the ESP data sheets, my ESP32 variant really does have 3 UARTs - 2 of which have default pin mappings.

Any thoughts?

Re: ESP32 UART issue

Posted: Wed Feb 21, 2024 10:06 am
by BenR
Hello,

Please can you attach your project file showing the problem and we will investigate for you.

Re: ESP32 UART issue

Posted: Wed Feb 21, 2024 4:11 pm
by KK_Electronics_Ltd
It seems that the problem was caused by my having left one UART RXINT enable/disable call set to UART0. That was enough to upset the compiler!