ESP32 UART1 problem
ESP32 UART1 problem
HI
We have a restarting problem having pushed the restart button on our developer board.
This board equipped with AMS1117 voltage regulator with the requested capacitors and UART0 has an external pin set for FTDI232 USB board. Also there are two ESP32s on the board connected to GPIO10, GPIO9 crossed the TX/RX (UART1).
The issue is that if I restart one of ESP32 pushing the restart button on it the second one is also restarted.
Doesn't matter which app was flashed into ESPs (the official "SCAN" IDF app was flashed into both ESP) this restart problem is still exist.
This problem is still exist until the UART1 TX cable disconnection on the ESP where the reset was forced. If I'd disconnect the ESP1 UART1 TX the problem is no longer exist.
My assumption is that: there is a electronic transient happening on UART1 TX pin (GPIO10) which could collapse the second ESP too if the connection exist between ESP1 UART TX and ESP2 UART RX.
If you encountered with similar problem and you have already solved it please help to know how.
Thank you
Gary
We have a restarting problem having pushed the restart button on our developer board.
This board equipped with AMS1117 voltage regulator with the requested capacitors and UART0 has an external pin set for FTDI232 USB board. Also there are two ESP32s on the board connected to GPIO10, GPIO9 crossed the TX/RX (UART1).
The issue is that if I restart one of ESP32 pushing the restart button on it the second one is also restarted.
Doesn't matter which app was flashed into ESPs (the official "SCAN" IDF app was flashed into both ESP) this restart problem is still exist.
This problem is still exist until the UART1 TX cable disconnection on the ESP where the reset was forced. If I'd disconnect the ESP1 UART1 TX the problem is no longer exist.
My assumption is that: there is a electronic transient happening on UART1 TX pin (GPIO10) which could collapse the second ESP too if the connection exist between ESP1 UART TX and ESP2 UART RX.
If you encountered with similar problem and you have already solved it please help to know how.
Thank you
Gary
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 UART1 problem
Do you have a schematic of this board we can take a look at?
Re: ESP32 UART1 problem
Are you sure you can use GPIO10, GPIO9 ?? Usually it is reserved for flash chip.
Re: ESP32 UART1 problem
HI
I'm sending a simply schema of our developer board in the attached file.
There is a small mistake at voltage regulator name which is not a 78xx series as you can see in the circuit. We have AMS1171 3.3V voltage regulator in our developer board.
Thank you for your help.
Br,
Gary
I'm sending a simply schema of our developer board in the attached file.
There is a small mistake at voltage regulator name which is not a 78xx series as you can see in the circuit. We have AMS1171 3.3V voltage regulator in our developer board.
Thank you for your help.
Br,
Gary
Re: ESP32 UART1 problem
Uart0 is the default for the usb-uart but gpio 6-10 are used for spi0 port which is connected to the flash chip on wroom32. You have to reconfigure uart1 to other free pins.
Re: ESP32 UART1 problem
We have just followed the ESP32 Datasheet doc https://www.espressif.com/sites/default ... eet_en.pdf on page 8 where the UART1 RX/TX were written at the GPIOs (9-10)
Even if sounds logic these GPIOs are connected to SPI (this could cause my ESP is restarting) this is the an official doc what we have followed. .
- Attachments
-
- ESP32_datasheet_page_8.png (34.9 KiB) Viewed 15540 times
Re: ESP32 UART1 problem
gpio9 is the default pin for both u1rxd and spihd. You have to check the schematic for wroom32.
Re: ESP32 UART1 problem
We made a new test scenario using the UART2 with GPOI17 (TX) and GPIO016(RX) and there was no restart on the connected ESP32 anymore.
Thank you for your suggestion it seams the problem has been solved.
Thank you for your suggestion it seams the problem has been solved.
Who is online
Users browsing this forum: No registered users and 126 guests