[SOLVED] Flash ESP32 WROOM32E on custom PCB

doglike
Posts: 63
Joined: Fri Aug 18, 2017 4:21 pm

[SOLVED] Flash ESP32 WROOM32E on custom PCB

Postby doglike » Wed Mar 03, 2021 10:14 pm

Hi,

I have a custom PCB with a ESP32 WROOM32E module and cannot flash it.

GPIO1 (=Tx) is connected to Rx of CP2102.
GPIO3 (=Rx) is connected to Tx of CP2102.
...and I can see the boot messages...

EN and GPIO0 have pullups.
I pull both LOW, keep GPIO0 LOW and switch EN to HIGH.
--> jumps in download mode

Code: Select all

rst:0x1 (POWERON_RESET), boot:0x5 (DOWNLOAD_BOOT(UART0/UART1/SDIO_FEI_REQ_V2))
waiting for download
2021-03-03_21h09_54.jpg
2021-03-03_21h09_54.jpg (14.36 KiB) Viewed 4716 times

Then:

Code: Select all

make flash
2021-03-03_22h59_16.jpg
2021-03-03_22h59_16.jpg (14.28 KiB) Viewed 4716 times
It tries to connect "forever" and then throws a timeout error.

Someone an idea ?

Thanks in advance!



EDIT:
Regarding https://github.com/espressif/esptool/wi ... -Selection
GPIO2, 12, 15 have all pulldowns
Last edited by doglike on Thu Mar 04, 2021 9:34 pm, edited 1 time in total.

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: Flash ESP32 WROOM32E on custom PCB

Postby ESP_Minatel » Thu Mar 04, 2021 10:57 am

Hi,

Have you checked the soldering and the signals using an oscilloscope? Is the CP2102 integrated in your PCB design?

doglike
Posts: 63
Joined: Fri Aug 18, 2017 4:21 pm

Re: Flash ESP32 WROOM32E on custom PCB

Postby doglike » Thu Mar 04, 2021 1:36 pm

Hi,

not measured with oscilloscope, yet, but I rudimentally checked the soldering for shorts etc., but the electrical continuity is fine.

The CP2102 is on an external "flasher" and not part of the PCB. I also tried 3 different CP2102-flashers.
I use only Tx and Rx lines of the CP2102 and I just realized, that the Tx/Rx wires from CP2102--->PCB are about 20-30cm.
Is it possible that the communication is disturbed by interference caused by the long wires ?

I am just wondering, why the boot messages are visible, if there should be any electrical error... ??

Thanks

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: Flash ESP32 WROOM32E on custom PCB

Postby ESP_Minatel » Thu Mar 04, 2021 5:49 pm

Hi,

Can you try adding a capacitor (100nF to 4.7uF) on the EN pin to GND? Maybe you have some issues on the EN timing on your setup.
It will help if you can share part of your schematic.

doglike
Posts: 63
Joined: Fri Aug 18, 2017 4:21 pm

Re: Flash ESP32 WROOM32E on custom PCB

Postby doglike » Thu Mar 04, 2021 7:24 pm

EDIT: Solved :)
I didn't connected the GND of the PCB with the GND of the flasher.

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: [SOLVED] Flash ESP32 WROOM32E on custom PCB

Postby ESP_Minatel » Fri Mar 05, 2021 8:48 am

Thanks for your feedback!

Who is online

Users browsing this forum: No registered users and 96 guests