Page 1 of 1

Cannot Download to ESP-WROVER-KIT

Posted: Thu Apr 06, 2017 11:55 am
by jlbahr
We purchased an ESP-WROVER-KIT and installed Eclipse and command-line development environments on both Windows and Linux (Ubuntu 14.04 LTS). After following all instructions, we are unable to download binaries in either environment, with exactly the same message: Connecting ....._____....._____ and eventually an error message about a bad header. We use the EXACT same projects and development environments and can download to the Sparkfun ESP32 Thing with no problem. We have tried the suggested trick of holding down on the boot switch and then depressing the enable/reset switch, doesn't help. This is crazy, something like downloading to a development kit should "just work". We've wasted a day already.

Re: Cannot Download to ESP-WROVER-KIT

Posted: Thu Apr 06, 2017 12:03 pm
by ESP_igrr
Could you please post the full output from the upload tool?

Re: Cannot Download to ESP-WROVER-KIT

Posted: Thu Apr 06, 2017 5:03 pm
by ESP_krzychb
I see the following issue with ESP-WROVER-KIT black on Ubuntu 16.04 LTS with latest master from GitHub.

Code: Select all

Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-beta2
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
/home/krzysztof/esp/esp-idf/components/esptool_py/Makefile.projbuild:52: recipe for target 'flash' failed
make: *** [flash] Error 2
The same board loads without any issues on a Windows PC .

DevKitC board loads without any issues on both Ununtu PC and Windows PC.

Edit:
This looks like a systematic issue for Ubuntu 16.04 LTS PC / ESP-WROVER-KIT.
The following boards fail to load:
* ESP-WROVER-KIT V2 (black)
* ESP-WROVER-KIT V1 (red)
No any problems loading on Windows 7

The following boards load correctly on both Ubuntu and Windows 7 machines:
* DevKitC
* ESP32 Demo Board V2

Re: Cannot Download to ESP-WROVER-KIT

Posted: Thu Apr 06, 2017 5:15 pm
by rapzakesp
Hi,

I have changed the base resistor on Q1+Q2 to a higher value (10kohm i think) (R52+R46)

Rapzak

Re: Cannot Download to ESP-WROVER-KIT

Posted: Thu Apr 06, 2017 10:33 pm
by WiFive
Did you try ttyUSB1

Re: Cannot Download to ESP-WROVER-KIT

Posted: Fri Apr 07, 2017 4:33 am
by ESP_krzychb
Did you try ttyUSB1
@WiFive
Snap :D
Using /dev/ttyUSB1 resolves the issue.

(ESP-WROVER-KIT shows up under two USB ports - /dev/ttyUSB0 and /dev/ttyUSB1.)
This should be added to the "getting started" guide.

Thank you for a hand!

Re: Cannot Download to ESP-WROVER-KIT

Posted: Fri Apr 07, 2017 12:31 pm
by jlbahr
Thanks! That's exactly the error message I'm getting. It doesn't matter if it's my Windows 10 setup or Ubuntu 14.04. I have tried both /dev/ttyUSB0 and /dev/ttyUSB1 on Linux and on Windows, I just look at Device Manager and use make menuconfig to change to the appropriate serial port.

Re: Cannot Download to ESP-WROVER-KIT

Posted: Fri Apr 07, 2017 4:28 pm
by ESP_igrr
Okay, with the port question out of the way, do you have jumpers installed to connect tx/rx pins of the ft2232 with rx/tx of the ESP32?

Re: Cannot Download to ESP-WROVER-KIT

Posted: Wed Jun 28, 2017 10:25 am
by G6EJD-ESP32
I was getting similar errors, then I selected 40MHz and the board type Firebeetle-ESP32 and now it works perfectly. I have since clones the boards.txt to add a ESp32-WRover board type with the same characteristics as the Firebeetle type. It needs to in DIO mode and default to 40MHz.