ESP32 upload error

I use "ESP32-wroom-32D" in the Arduino IDE 2.1.0
I select tool>board>"esp32 dev module"
tool>port>"com5" this only one
I tried tool>upload speed>921600 change 115200
clicked boot and EN button

I got this error message on upload:

Sketch uses 262073 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21344 bytes (6%) of dynamic memory, leaving 306336 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM5
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:22:d8:3e:66:10
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.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00050fff...
Compressed 18992 bytes to 13112...

A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Failed uploading: uploading error: exit status 2

code------------ ir sensor connected
#include <Arduino.h>
int irpin1 = 33;

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(irpin1, INPUT);

}

void loop() {
// put your main code here, to run repeatedly:
int value = digitalRead(irpin1);
Serial.println(value);
delay(100);
}

Hi, we met on the Discord channel of Wokwi.
Which board do you have ? Please give a link to where you bought it.
I suppose there is a CP2102 usb-serial chip on it.

The board could be faulty, I think there is a 50% chance that we can make it work.
Have you used other Arduino boards ? Do you have another ESP32 board ?
Which Operating System do you use ?

Please update the Arduino IDE to the newest version, bugs are fixed all the time.
https://www.arduino.cc/en/software

Then update all the boards and libraries as well.

Which board do you select from the menu ?
Can you tell which other options you choose in the menu ?

Have you tried an other USB cable and an other USB port on the computer ?

Ah,,Hi
I have ESP32-WROOM-32D
I don't have another ESP32 borad but have UNO and use win10
I selected board : "ESP32 Dev module" and tried "ESP32-WROOM-DA module"
change "upload speed : " 921600 > 115200 only
other cable not yet

The ESP32-WROOM-32D is the metal module on the board.
Which board do you have ?
afbeelding
Some boards are indeed called a "ESP32-WROOM-32D" board, but can you give a link to where you bought it.

There are more problems on this forum with Windows 10 :frowning_face:

ah,, bought 5th look like same that image

https://ko.aliexpress.com/item/32959541446.html?pdp_npi=3%40dis!KRW!₩%201%2C847!₩%201%2C494!!!!!%402140d17816918935208563791d43cb!12000029094625526!sh01!KR!2655537413&spm=a2g0o.store_pc_home.productList_2004876803165.pic_3

Why ?

actually I don't know
searching error someone say : change upload speed

The only problem I ever had with an ESP32 is with a cheap/crappy/thin USB cable.
These boards need solid power to do their magic.
Leo..

I didn't try other cable
so just change other cable?

I just experienced upload errors with ESP8266 boards with unmarked serial chips.
Tried installing a CH34x...v3_4 driver from the net, and it worked.
Changed the IDE to an Uno board, to do some work.
Switched to an ESP8266 board a few days later, and it refused to connect.
Refused to install the same driver.
Uninstalling the driver, and re-installing did work.
Device manager shows a CD210x driver when working.
Win11 Pro.
Leo..

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