Using the ESP32-WROOM-32UE
I have been successfully programming the chips using a custom circuit with a MCP2221 as the USB to UART serial converter for almost a year, but the interface has stopped working. I can still use the circuit and communicate with the ESP32 through CoolTerm or TeraTerm serial monitors. I can get the chip into programming mode and verify it in the serial window:
"rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download"
The Arduino IDE reports:
"A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x00)"
I know that the Arduino IDE is opening the port, because if I try to use CoolTerm while it is "Connecting.....", I get a message saying that the port is busy.
I have tried changing port assignments, the flash speeds, rebooting both the IDE and my computer, etc. I can connect to an actual Development Module and program it fine, so I know the toolchain is okay. I'm stumped.
Thanks in advance for any thoughts!
Can connect via serial monitor app but not Arduino or ESP-IDF
-
- Posts: 11
- Joined: Fri Apr 08, 2022 6:02 pm
Can connect via serial monitor app but not Arduino or ESP-IDF
Last edited by DanielPLongo on Tue Apr 12, 2022 5:56 pm, edited 1 time in total.
-
- Posts: 101
- Joined: Tue Mar 22, 2022 5:23 am
Re: Can connect via serial monitor app but not Arduino
Looks like this guy faced the same problem and could solve it: https://forum.sparkfun.com/viewtopic.php?f=182&t=56445
-
- Posts: 11
- Joined: Fri Apr 08, 2022 6:02 pm
Re: Can connect via serial monitor app but not Arduino
ESP32-WROOM-32UE
Thank you for the reply, but that link is not pertinent to my situation. To frame it more succinctly, I am not using a development board. The UART channel is operative and functionally the chip reports that it is "waiting for download" in CoolTerm serial monitor, but Arduino is not seeing it any longer, nor can I connect to the ESP32 via ESP-IDF. The chip is clearly able to communicate via the terminal, so why can't ESP-IDF? I have been using this same setup for a year and cannot determine what has broken. There is no further information with verbose settings on in Arduino and the CMD window in ESP-IDF only says "A fatal error occurred: Failed to connect to ESP32: No serial data received.". Any direction on how to get more insight into the causes of this error would be helpful. Thanks in advance!
Thank you for the reply, but that link is not pertinent to my situation. To frame it more succinctly, I am not using a development board. The UART channel is operative and functionally the chip reports that it is "waiting for download" in CoolTerm serial monitor, but Arduino is not seeing it any longer, nor can I connect to the ESP32 via ESP-IDF. The chip is clearly able to communicate via the terminal, so why can't ESP-IDF? I have been using this same setup for a year and cannot determine what has broken. There is no further information with verbose settings on in Arduino and the CMD window in ESP-IDF only says "A fatal error occurred: Failed to connect to ESP32: No serial data received.". Any direction on how to get more insight into the causes of this error would be helpful. Thanks in advance!
-
- Posts: 11
- Joined: Fri Apr 08, 2022 6:02 pm
Re: Can connect via serial monitor app but not Arduino or ESP-IDF
To be more succinct, I know there is serial communication, because I can see the ESP32-WROOM-32UE report in the CoolTerm serial monitor as well as reporting "waiting for download". I have been using this same build for the last year. Only a couple of days ago did the Arduino IDE stop being able to communicate. ESP-IDF through the CMD window cannot connect either.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Can connect via serial monitor app but not Arduino or ESP-IDF
Could you post what esp-idf spits out when you try to program the device?
Who is online
Users browsing this forum: No registered users and 88 guests