Page 1 of 1

Sparkfun ESP32 Dev Board Uploading

Posted: Thu Jan 17, 2019 8:41 am
by jwells
I bought a couple of the ESP32 development boards. I'm using the Arduino IDE with the ESP32 plugin, and I'm unable to upload my code. I've tried it on two separate computers and on both boards. The strange thing is that for my first attempt I successfully uploaded a blinky program, but then when I went to use my "real" code, it won't upload to either board

Details: I have the latest Arduino IDE 1.8.8. Windows appears to successfully install the FT231X drivers. My micro-usb cable works for other devices (card reader) so I don't think it's a bad cable. Pretty sure I've tried it in USB 3.0 and older ports. Tried it on a WIndows 10 and a WIndows 7 computer.

Below is my error message. I've tried picking different ports and upload speeds. I'm out of ideas.

Arduino: 1.8.8 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 512000, None"

Build options changed, rebuilding all
Sketch uses 251740 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 15028 bytes (4%) of dynamic memory, leaving 312652 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM8
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.



Anybody got any ideas?

Thanks.

Re: Sparkfun ESP32 Dev Board Uploading

Posted: Thu Jan 17, 2019 9:28 am
by DanV
Google is your friend:
"Failed to connect to ESP32: Timed out waiting for packet header"

Re: Sparkfun ESP32 Dev Board Uploading

Posted: Thu Jan 17, 2019 10:48 am
by paulvha
are you pushing the GPIO0 button on the ESP32 during connecting ? NOT the reset ?

Re: Sparkfun ESP32 Dev Board Uploading

Posted: Thu Jan 17, 2019 12:03 pm
by jwells
Paulvha: You got it! I stumbled onto this randomly a few minutes ago, but I appreciate your response. You have to press and hold Pin 0 to get it to "flash." That might be something that Sparkfun should boldly put into their hookup guide.
Thanks.

Re: Sparkfun ESP32 Dev Board Uploading

Posted: Fri Jan 18, 2019 1:09 am
by paulvha
you have to press the button when the "connecting..." appears on the screen. Once it starts uploading you can release it. Also make sure your serial monitor is closed, otherwise you uploading will fail often.