ESP32 errors with Arduino IDE

YigalB
Posts: 11
Joined: Sun Mar 18, 2018 8:41 pm

ESP32 errors with Arduino IDE

Postby YigalB » Sun Mar 18, 2018 8:46 pm

I am totally newbie with ESP32, not with Arduino.

I installed the ESP32 according to the guide lines. The ESP32 dev board can be selected.
When I connect the board, I can see the pre-installed message on the serial monitor, so it looks like the drivers work well.

However, I get two error messages when I run a simple example example program (blink) with the IDE.
At compile time:
Archiving built core (caching) in: C:\Users\Side\AppData\Local\Temp\arduino_cache_838389\core\core_espressif_esp32_esp32_FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_none_d0d7dcc45b1e44c58b48a1b6a3d41bcd.a
Sketch uses 153417 bytes (11%) of program storage space. Maximum is 1310720 bytes.
Global variables use 10936 bytes (3%) of dynamic memory, leaving 283976 bytes for local variables. Maximum is 294912 bytes.
and when uploading:
esptool.py v2.1
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
Any idea?

Also, is there a way to use the ESP32 with the online editor?

Thank you
Yigal

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 errors with Arduino IDE

Postby chegewara » Mon Mar 19, 2018 5:23 pm

The second error is when esp32 does not switch to upload mode. You can do it manually with boot and power buttons combination, but my suggestion is to change usb cable at first.

Andras
Posts: 1
Joined: Tue Nov 05, 2024 1:35 pm

Re: ESP32 errors with Arduino IDE

Postby Andras » Tue Nov 05, 2024 1:38 pm

I had a similar problem and noticed that the writing process switched to high upload speed.
You can go on the Arduino IDE into the Tools menu it has 2 settings that I changed one was Tools>Upload speed that I reduced as much as I could to 115200 and then there was one Flash Frequency that I also reduced to 40 MHz I figured that maybe the writing process was too fast ... for me this solved the problem and I could upload.

Hope it helps.

Who is online

Users browsing this forum: No registered users and 62 guests