ESP32 upload failure
Posted: Sat Feb 20, 2021 3:34 pm
Recently I started to see hick-ups when trying to upload my sketch to the ESP32 board. I had to try several times in order to get the job done. Now I'm dead in the water. Every attempt to upload ends with a long line of Morse code (....____.... etc) and the message "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header".
Before that I had an upload failure while the upload was on-going. As a result (I guess) of the failed upload ESP32 is now constantly crashing. I doubt that the crashing impacts the upload - I've had crashes before, related to errors in my sketch and upload would still succeed.
I removed all resistors, LEDs etc. from the breadboard to make sure there is no interference with "forbidden" pins on the ESP32.
Board: DOIT ESP32 DEVKIT V1
Arduino: 1.8.13
Baud rate: 912600 (I tried lower baud rates, but no success)
COM driver: Silicon Labs CP210x USB to UART Bridge 6.7.6.2130 (manually installed the latest version, but made no difference)
Crash info (in case this means anything to anyone):
I have simple scope (bandwidth 20 MHz). Is there anything I can check (e.g. on the CP2102) to see if the hardware is broken or not? Measuring directly on the CP is not an option as the pins are too close together, but maybe on the WROOM module? Those pins have a pretty decent spacing.
Before that I had an upload failure while the upload was on-going. As a result (I guess) of the failed upload ESP32 is now constantly crashing. I doubt that the crashing impacts the upload - I've had crashes before, related to errors in my sketch and upload would still succeed.
I removed all resistors, LEDs etc. from the breadboard to make sure there is no interference with "forbidden" pins on the ESP32.
Board: DOIT ESP32 DEVKIT V1
Arduino: 1.8.13
Baud rate: 912600 (I tried lower baud rates, but no success)
COM driver: Silicon Labs CP210x USB to UART Bridge 6.7.6.2130 (manually installed the latest version, but made no difference)
Crash info (in case this means anything to anyone):
Is there a way to perform a "factory reset" of the ESP32, i.e. to re-install the bootloader?16:09:32.734 ->
16:09:32.734 -> rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:09:32.734 -> configsip: 0, SPIWP:0xee
16:09:32.734 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:09:32.734 -> mode:DIO, clock div:1
16:09:32.734 -> load:0x3fff0018,len:4
16:09:32.734 -> load:0x3fff001c,len:1044
16:09:32.734 -> load:0x40078000,len:8896
16:09:32.734 -> load:0x40080400,len:5816
16:09:32.734 -> entry 0x400806ac
16:09:32.968 -> ets Jun 8 2016 00:22:57
I have simple scope (bandwidth 20 MHz). Is there anything I can check (e.g. on the CP2102) to see if the hardware is broken or not? Measuring directly on the CP is not an option as the pins are too close together, but maybe on the WROOM module? Those pins have a pretty decent spacing.