Esp 32 uploading a sketch

Hello everyone. I bought it recently and use the ESP 32 board for the first time.
Before using ESP8266 nodemcu

  1. Downloaded the library.

  2. Downloaded the library via the board manager

  3. The Port is defined
    image

  4. But somehow the sketch doesn't load.


Photo esp32:

I unfortunately never programmed an esp32. Trough experience I know that you have to re-install Arduino IDE and try again. Check also if the Flash Size has the correct value.

Re-install? Maybe restart the IDE.

Enter the following into the “Additional Board Manager URLs” field: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

When the OP saw ...___...___...___...___... did the OP press the button?

in the Arduino IDE select File>Preferences and enable "Verbose output during Compiling and upload" then compile and upload your program again
upload the program and if there are problems upload the error messages as text

Please please please, don't post screenshots of text.

Arduino: 1.8.19 (Windows 7), Board:"ESP 32 Dav Module, Disabled, Default 4MB with spiffs (1.2 MB APK/1.5 MB SPIFFS), 240 MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

The sketch uses 206902 bytes (15%) of the device's memory. A total of 1310,720 bytes are available.

Global variables use 13476 bytes (4%) of dynamic memory, leaving 314204 bytes for local variables. Maximum: 327680 bytes.

esptool.py v3.0-dev

Serial port COM7

Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch

_



A fatal error occurred: Failed to connect to ESP 32: Timed out waiting for packet header



This report will have more information with
the option File -> Settings ->
"Show detailed output at compile time" enabled

I wrote and wanted to reboot the ESP 32 library, but an error occurred in the middle

I don't press anything

Thanks, I did exactly the same. It didn't help

Ok. open the serial monitor, press and release the reset button. Does anything appear in the serial monitor ?

What happens when you try press the button when you see ...___...___...?
2 buttons you got a 50/50 chance of getting right the first time. Try again.

are you sure you have the correct COM port
e.g. if you expand the select baord list, e.g.
image
and unplug/plugin the USB connector of th ESP32 the corresponding COM port will disappear/appear

usually when ...___...___... appears I press the BOOT button on the ESP32 module

As I understood when I saw... ...... I pressed the reset button and the second button. It didn't work out. Rebooted the same error


Yes, it seems right. When I disconnect, the port is disconnected. Connecting appears

Device Manager
image

that looks like an ESP32 COM port
upload the program code using code tags </>