Can't upload code to WROOM-32D

rubfergor
Posts: 1
Joined: Fri Aug 31, 2018 11:19 pm

Can't upload code to WROOM-32D

Postby rubfergor » Fri Aug 31, 2018 11:43 pm

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!!
Attachments
esp32.png
esp32.png (54.75 KiB) Viewed 7102 times

fovea1959
Posts: 4
Joined: Tue May 21, 2019 2:52 pm

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

Postby fovea1959 » Tue May 21, 2019 4:06 pm

Did you get this resolved? I am having a similar problem with a DevKitC, which you indicate you had the issue with some units.

gecko242
Posts: 18
Joined: Tue Oct 02, 2018 7:11 am

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

Postby gecko242 » Thu May 23, 2019 10:49 am

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!

Who is online

Users browsing this forum: Bing [Bot] and 96 guests