Error flashing Wemos D1 mini(ESP8266) with arduino

Hello every one,

I’m having an issue programming a wemos D1 mini board(Actually I’m also trying to program the D1 mini pro but also with no luck so that’s not a hardware issue) and when I try to compile and program the module the prog led blinks once or a few times and the IDE outputs the following message:

esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 921600
	setting port from COM1 to COM3
	setting address from 0x00000000 to 0x00000000
An error occurred while uploading the sketch
	espcomm_upload_file
	espcomm_upload_mem
	setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Any way to fix this?

I’ve tried using varius versions of arduino and ESP8266 board family but it prints the same error and yes I’ve made sure that the right COM port is selected and using the default board settings along with some other combinations for also lowering the prog baud rate ECT…

did you select the right Wemos D1? there are different reset methods. select D1 R2 & mini. and in esp8266 core package 2.4 is a bug in configuration of reset, so use 2.4.1

Have you tried another usb port and another usb cable? Is anything connected to any of the Wemos pins that could be pulling them low or high?

So I've tried all of those and currently I'm using the latest arduino 1.8.5 and the 2.4.1 board version and the module is floating meaning nothing is connected to is besides the PC I'm just trying to get the blink example into it.

Even after uninstalling the arduino completely (inc arduino15 folder)
it displays the same error....

What country are you in? If UK, you could post one of them to me to test. Internationally the postage would be to much.

Actually one of them is defective probably(the D1 mini) and for the pro I just connected an ftdi to program it once and pulled to GND pins D2 and D8 just once. after this it magically works normally probably unlocked some wizardry the electronics god put on it