Page 1 of 1

Can't upload code to WROOM-32D

Posted: Fri Aug 31, 2018 11:43 pm
by rubfergor
Hello,

I have designed a PCB using the ESP32 module, however I do have problems uploading code to it. When I power the board, I get the following message:

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
However, when I try to flash it, all that I get is:

Code: Select all

$ make flash
Python requirements from C:/msys32/home/rubfe/esp/esp-idf/requirements.txt are satisfied.
Flashing binaries to serial port COM9 (app at offset 0x10000 )...
esptool.py v2.5.0
Serial port COM9
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/rubfe/esp/esp-idf/components/esptool_py/Makefile.projbuild:63: flash] Error 2
This happens both with IDF and with Arduino IDE.

The schematics of the module are attached and are made following the recommendations of design outlined in the ESP32 WROOM-32 module datasheet. The module in question is this. I'm supplying power through a 12V/2A power source (regulated by a LM1117T, which has a 800mA output and which remains in operating temperature). I'm using this FTDI cable to program it using UART. I have mixed success using it to program, as I have been able to program a DevKitC development board with it, but not another one (which is newer and I'm able to program using the microUSB connection).

Any help would be greatly appreciated. Thanks in advance!!

Re: Can't upload code to WROOM-32D

Posted: Tue May 21, 2019 4:06 pm
by fovea1959
Did you get this resolved? I am having a similar problem with a DevKitC, which you indicate you had the issue with some units.

Re: Can't upload code to WROOM-32D

Posted: Thu May 23, 2019 10:49 am
by gecko242
You need a pull up on IO0 I believe.
Also, are you toggling the reset line?

Workflow should be:
Pull IO0 Low
Reset chip (or cycle power)
Release IO0
Initiate Download
cycle power when complete

Done!