ESP32 UART issue

For general Flowcode discussion that does not belong in the other sections.
Post Reply
KK_Electronics_Ltd
Posts: 3
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 8:47 pm
Has thanked: 1 time
Been thanked: 1 time

ESP32 UART issue

Post 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?

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32 UART issue

Post by BenR »

Hello,

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

KK_Electronics_Ltd
Posts: 3
Joined: Thu Dec 17, 2020 8:47 pm
Has thanked: 1 time
Been thanked: 1 time

Re: ESP32 UART issue

Post 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!

Post Reply