Daniel kalu
DIIDevHeads IoT Integration Server
•Created by Daniel kalu on 12/16/2024 in #🪲-firmware-and-baremetal
What Causes 'Clock Stretch Too Long' Errors When Flashing ESP32?
Hey guys I'm experiencing intermittent timeouts and invalid packet errors while programming my ESP32-WROOM-32 module via USB using esptool version 2.8 and ESP-IDF version 4.4 for a cloud-connected IoT project integrating with AWS IoT Core. I've been trying to flash custom firmware, but the process consistently fails. Upon reviewing the error logs, I noticed the error message "timeout: clock stretch too long" followed by "invalid packet" errors. I've verified that the board is in boot mode by pulling GPIO0 low and confirmed the serial port configuration is set to 115200 baud. Despite trying different USB cables, adapters, and computers, issues persist. What are potential causes and troubleshooting steps to successfully flash the firmware and establish reliable cloud connectivity?
4 replies