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?
ESP32 UART issue
-
- Posts: 3
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 17, 2020 8:47 pm
- Has thanked: 1 time
- Been thanked: 1 time
-
- Matrix Staff
- Posts: 1763
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 448 times
- Been thanked: 607 times
Re: ESP32 UART issue
Hello,
Please can you attach your project file showing the problem and we will investigate for you.
Please can you attach your project file showing the problem and we will investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 3
- Joined: Thu Dec 17, 2020 8:47 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: ESP32 UART issue
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!