Whenever I try to upload code onto my ESP-32 Board it keeps giving me this error no matter what:
Sketch uses 261697 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22384 bytes (6%) of dynamic memory, leaving 305296 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\-------\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe" --chip esp32 --port "COM3" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "C:\Users\WILLF\AppData\Local\Temp\arduino\sketches\18FA2337066F96C9B09E462DA02F98D8/UltrasonicdetectionWithLED.ino.bootloader.bin" 0x8000 "C:\Users\WILLF\AppData\Local\Temp\arduino\sketches\18FA2337066F96C9B09E462DA02F98D8/UltrasonicdetectionWithLED.ino.partitions.bin" 0xe000 "C:\Users\WILLF\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\WILLF\AppData\Local\Temp\arduino\sketches\18FA2337066F96C9B09E462DA02F98D8/UltrasonicdetectionWithLED.ino.bin"
esptool.py v4.5.1
Serial port COM3
Connecting...
A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 1
Even though it says it is likely a hardware issue it cannot be because the same Micro-USB to connect my ESP-32 connects to other devices and properly writes code.
I have the right drivers (CP210x) but it still brings up the same error. By the way, holding down the BOOT button during code upload doesn't change anything either.
You said that other device can upload to the esp.
What is the difference between that device and this device.
OS?
OS version?
Driver version?
Core version?
Driver type?
By connecting other devices I mean the Arduino Uno Rev3 and the Raspberry Pi Pico can connect to my computer. However, I use Arduino IDE for Uno Rev3 and Thonny for the Pico. By OS I think you are referring to the one my computer uses, which is Windows 11 up to date. All of my drivers are up to date as well and esp32 in the board manager on the Arduino IDE. I use an ESP32 board I bought on Amazon (link below) which has a name on the bottom of the board called (ESP32 DEVKITV1). If you would like I can send images as well.
I think the problem is with the driver.
In the PDF doc attached to the link it does not mention windows 11…
I don’t use windows so I don’t know if the one called “universal” will work….
I got the same error. I'm starting to think it's either the OS or, in some way, the cable. I'll probably use Arduino IDE on an older computer tonight and check in soon.
Sorry guys for the delay, I got distracted so please forgive me. I did connect my esp32 board to an older computer at home with the older Arduino 1.8.19 and it worked correctly when I pressed the BOOT button. I was also using the same Micro USB cable and it worked. So for now, unless this issue could be resolved with some software update, I'll use my older PC. But thanks anyways you guys for the help and God bless!