I recently purchased a new ESP32 and encountered challenges with uploading sketches to the device. Despite following tutorials and attempting to erase its flash memory, I now find myself unable to upload new sketches or even flash a new bootloader onto the ESP32. The error message I receive during the upload attempt is as follows:
Sketch uses 869861 bytes (66%) of program storage space. Maximum is 1310720 bytes.
Global variables use 55404 bytes (16%) of dynamic memory, leaving 272276 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM6
Connecting.....
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b0:b2:1c:51:ef:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Traceback (most recent call last):
File "esptool\__init__.py", line 1032, in _main
File "esptool\__init__.py", line 816, in main
File "esptool\loader.py", line 1184, in flash_set_parameters
File "esptool\loader.py", line 435, in check_command
File "esptool\loader.py", line 404, in command
File "esptool\loader.py", line 337, in read
StopIteration
A fatal error occurred: The chip stopped responding.
Failed uploading: uploading error: exit status 2```
This error indicates a failure to communicate with the ESP32's flash chip, leading to unsuccessful read/write operations. Despite efforts to troubleshoot by checking chip connections and removing additional hardware from IO pins, the issue persists. Any assistance or guidance on resolving this problem would be greatly appreciated.
the name on esp32 is esp-wrover-ie,
Also tried erasing the flash with python .still error
esptool.py v4.7.0
Found 1 serial ports
Serial port COM6
Connecting..........
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b0:b2:1c:51:ef:d0
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Erasing flash (this may take a while)...