New esp32 not working !help with esp32 flash !

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)...

As your query does not relate to the Nano ESP32 directly it has been moved to a more generic category of the forum

Have you read this?

Can you show us what board it is you are using ? (picture / link)
Have you tried a different usb cable ?

https://robu.in/product/esp32-wroom-ie-esp32-devkitc-core-board-for-arduino/

this is the exact board
and this is the chip number i see when i try to flash anything
"ESP32-D0WDQ6-V3"

yes tried different usb cables,
i am able to flash other esp32 boards with same usb cable just fine .

Hi @taresh345. I'm not sure about this particular error message, but I have found that some unexpected upload failures to ESP32 boards can be resolved by reducing the upload speed, which is configurable via a convenient menu.

Select Tools > Upload Speed > 115200 from the Arduino IDE menus and then try uploading the sketch again, just as you did before. Hopefully this time the upload will be successful. If not, add a reply here on the forum thread to let us know and we'll investigate further.

Optimizing Upload Speed

If the sketch upload no longer failed after reducing the upload speed, you will have determined that the board is not capable of managing uploads at the default 921600 baud, but is capable of them at 115200 baud.

Especially with more complex sketches, the upload will take a significant amount of time at 115200 baud. It is likely that the board is capable of managing uploads at some speed higher than 115200 baud, so it is worth doing some experimentation to determine the maximum speed at which you can reliably upload to the board. You can do this by repeating the "Configure Upload Speed" procedure above, but selecting different speeds each time. Then attempting an upload to see if the new speed is appropriate.

1 Like

There is also a chance that there is something wrong with the auto-reset / flash mode on the board. You can try holding down the 'boot' button after compilation until the upload starts.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.