Can connect via serial monitor app but not Arduino or ESP-IDF
Posted: Fri Apr 08, 2022 6:42 pm
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!
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!