ESP32 flashing script (esptool.py)

marko.brelak
Posts: 23
Joined: Wed Apr 10, 2019 1:26 pm

ESP32 flashing script (esptool.py)

Postby marko.brelak » Wed Apr 10, 2019 1:33 pm

Dear colleagues, I am using ESP32 on the board DOIT Esp32 DevKit v1 in eclipse IDE. I have succeeded in the building a project but when I want to flash the ESP, I need to hold the "boot" button pressed. Just to point out, I am using the "esptool.py" script. My question is, is there some other script which I can use in order to avoid holding the "boot" button while flashing? I think that when I used the Zerynth IDE I didn't need to hold any button while flashing, everything was automatic.

Thank in advance for your time.
Marko

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 flashing script (esptool.py)

Postby ESP_Angus » Thu Apr 11, 2019 12:44 am

Hi Marko,

Having to hold the BOOT button while flashing is a problem with the hardware. Some boards do not correctly implement the "auto reset circuit" so depending on the host computer, auto reset may not work. Windows and Virtual Machines are particularly vulnerable.

A workaround is to add a capacitor between the EN and GND pins on the board. Almost any value from 100nF or higher should work. This capacitor is on all Espressif development boards but not all third parties include it.

marko.brelak
Posts: 23
Joined: Wed Apr 10, 2019 1:26 pm

Re: ESP32 flashing script (esptool.py)

Postby marko.brelak » Thu Apr 11, 2019 7:22 am

Hi Angus,

Thank you very much for your answer, you are absolutely right about that.
Last night I was trying to do some corrections inside the esptool.py around RTS and DTR pin timings but without luck. Sometimes it works, sometimes it does not.
Then I finally added the 1uF across the EN and GND and it works like a charm!

Thanks again!
Marko

Who is online

Users browsing this forum: No registered users and 129 guests