Flashing of firmware fails in Esp32 Wroom 32D
Posted: Mon Jun 21, 2021 11:03 am
Development Kit: [ESP32-DevKitC]
Module or chip used: [ESP32-WROOM-32D]
Operating System: [Windows]
Using an IDE?: [Yes.Visual Studio Code]
Extensions used in Visual Studio Code: Platformio IDE V1.10.0, C/C++ V1.4.0
Power Supply: [external 5V]
Hello,
We are facing issues while burning the Firmware into the ESP32-WROOM-32D microcontroller. The Firmware got burned
successfully into 195 such devices containing ESP32-WROOM-32D microcontroller but failed in the remaining 5 devices
containing identical hardware and same flashing mechanism.
The Error we got is as follows:
RAM: [== ] 15.1% (used 49464 bytes from 327680 bytes)
Flash: [======== ] 78.1% (used 1228970 bytes from 1572864 bytes)
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM6
Uploading .pio\build\esp32dev\firmware.bin
esptool.py v2.6
Serial port COM6
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
*** [upload] Error 2
====================================================================================== [FAILED] Took 35.97 seconds ======================================================================================The terminal process "C:\Users\pc\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
There was no shorting of pins in those 5 devices even the ESP32-WROOM-32D microcontroller was checked thoroughly for shorting.
Surprisingly, the issue was resolved when the ESP32-WROOM-32D microcontroller was replaced by another one in those 5 devices.
The flashing is done by pressing the EN button momentarily(ESP is reset) while holding down the IO0 button. So now the ESP32 will successfully enter the flash programming mode.
The flashing of Esp32 is done using switches S1(Enable) and S2(IO0) as shown in the schematic below. Also the header P7 is used
where CP2102 USB 2.0 to TTL UART Serial convertor is used for flashing firmware into the Esp32.
Any help will be appreciated.
Module or chip used: [ESP32-WROOM-32D]
Operating System: [Windows]
Using an IDE?: [Yes.Visual Studio Code]
Extensions used in Visual Studio Code: Platformio IDE V1.10.0, C/C++ V1.4.0
Power Supply: [external 5V]
Hello,
We are facing issues while burning the Firmware into the ESP32-WROOM-32D microcontroller. The Firmware got burned
successfully into 195 such devices containing ESP32-WROOM-32D microcontroller but failed in the remaining 5 devices
containing identical hardware and same flashing mechanism.
The Error we got is as follows:
RAM: [== ] 15.1% (used 49464 bytes from 327680 bytes)
Flash: [======== ] 78.1% (used 1228970 bytes from 1572864 bytes)
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM6
Uploading .pio\build\esp32dev\firmware.bin
esptool.py v2.6
Serial port COM6
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
*** [upload] Error 2
====================================================================================== [FAILED] Took 35.97 seconds ======================================================================================The terminal process "C:\Users\pc\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
There was no shorting of pins in those 5 devices even the ESP32-WROOM-32D microcontroller was checked thoroughly for shorting.
Surprisingly, the issue was resolved when the ESP32-WROOM-32D microcontroller was replaced by another one in those 5 devices.
The flashing is done by pressing the EN button momentarily(ESP is reset) while holding down the IO0 button. So now the ESP32 will successfully enter the flash programming mode.
The flashing of Esp32 is done using switches S1(Enable) and S2(IO0) as shown in the schematic below. Also the header P7 is used
where CP2102 USB 2.0 to TTL UART Serial convertor is used for flashing firmware into the Esp32.
Any help will be appreciated.