Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 198966 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13248 bytes (4%) of dynamic memory, leaving 314432 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM9
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
A common enough seen error that the error gives no clues WITHOUT further information.
Help us help you.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Please post a schematic.
Please post an image of your project.
Please describe the problem better then you just did.
......................................................................
If you are using a 9V battery like this.
Don't.
.................................................................
Info about multi things
.......................................................................................................................
I2C scanner
https://www.arduino.cc/reference/en/libraries/i2cscanner/
What did the I2C scanner report?
.........................................................................................
Bread board power rail split
...............................................................................................................................................
Serial Input basics.
search box image
disclaimer
The events portrayed in this post are not all true. The names are not real names of real people and real organizations.
..............................................................................
which ESP32 board are you using?
did you press the boot button while it was displaying ...........
use the device manager to check you have the correct COM port set up
dd you press the boot-button after the qoted text above appeared?
You have to press the button after that.
Did you also press the other button? Some of the boards are wrong labeled.
Another thing that might make it work is do connect a 1 µF capacitor between GND and the EN-Pin.
Pressed the boot and other buttons after, used capacitor but in vain
If you plugin your ESP32 to the USB-cable do you hear this sound "new USB-device-detected"?
After pluggin in the USB
If you open the device-manager do you see a new entry in the COM-LPT-section?
Can you open the serial monitor ? What do you see if you open the serial monitor at 115200 and press and release the reset button ?
yes, I hear the sound and also see the port in device manager
code doesn't upload and I don't see anything on serial moniter
ESP32 Dev kit DOIT. Yes I pressed it. and can see the port on device manager
Disconnect the ESP32. List off the ports in the Arduino IDE. Add in the ESP32, does the ports available in the IDE change?
yes, com 9 adds upon connecting esp32.
I see this message upon uploading:
Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"
Sketch uses 219241 bytes (16%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16088 bytes (4%) of dynamic memory, leaving 311592 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM9
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
the selected serial port For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
does not exist or your board is not connected
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
A fail-safe method I've used in the past is to just disconnect everything (including breadboard). Only have the USB cable connected from the PC to ESP32. Now try to upload your sketch.
tried already
Its possible the PC's USB port isn't configured or designed to deliver enough power (max mA). If you have a good quality USB hub available with power adapter connected, this could ensure that 500mA or more is available at each USB port. Actually, in my previous comment, this is the setup I was using.
when you tried it is any hardware connected to your ESP32 board?
Or is it the plain nothing but USB-cable connected board?
I've been using this same board previously for my projects on this pc, it used to work fine. please see the error message I typed above
plain with usb
Did you try with the other ESP32 module?


