-->
Page 1 of 2

D1 Mini Board succeeds in programming only once

PostPosted: Fri Jul 10, 2020 5:04 am
by ClemensESP
I received a D1 Mini board (after using some ESP Modules with UART cable, but I could use some more IO).

I immediatly flashed my sketch with the Arduino IDE, and this just worked.

Now I worked further on the sketch...and uploading isn't possible anymore, I always get

"esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header"

My guess is that because of the serial connection in the first sketch, it's busy now or so...no idea.
I tried connecting D3 (GPIO0) to ground forcing programming mode (BLUE LED is off wenn doing this), but with no succes. I also tried pressing reset in different ways.

I also installed the USB driver...

Has someone any tips what I could try?

Thanks a lot!

Kind regars,
Clemens

Re: D1 Mini Board succeeds in programming only once

PostPosted: Fri Jul 10, 2020 6:25 pm
by ClemensESP
I found a solution... But maybe someone has an idea why it is like that.

I'm now able to flash if I connect d3(gpio 0) to gnd and d4 (gpio 2) to 3.3v. I read that you need to do this to set the esp8266 in programming mode, thats why I tried it. However I did nowhere read someone needed to do this on their d1 mini, d3 to gnd seemed sufficient if programming wasn't possible automatically. It also doesn't matter what code is flashed, also for an empty sketch it only works if I connect the two pins like described.

Re: D1 Mini Board succeeds in programming only once

PostPosted: Sat Jul 11, 2020 6:47 am
by Luc Volders
Have you tried reflashing it with the Arduino IDE instead of ESPtool
That might help

Re: D1 Mini Board succeeds in programming only once

PostPosted: Tue Jul 14, 2020 6:26 am
by pangolin
No D1 mini needs anything other than its usb cable to upload programs when using software that send the correct UART signals, e.g. ArduinoIDE