-->
Page 1 of 4

WEMOS D1 connection problems (timed out waiting for packet)

PostPosted: Sat May 30, 2020 1:55 am
by DINK74
Hi, folks!

I'm quite new to all this Arduino stuff - I bought an original Arduino Uno Starter Kit and it works fine with IDE. Then I wanted to build separate project on different board so I've chosen WEMOS D1 WiFi.
I've installed ESP8266 2.7.1 on Arduino IDE 1.8.12 and tried to upload simple sketch (Blink). But all I got is "esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header".
The board LEDs ON & SCK are both lit. While uploading another LED is blinking irregularly (the one by the edge of ESP8266 chip). I tried few different boards & connection speeds but with no success. What am I missing? Any ideas?
Arduino: 1.8.12 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:
IROM : 228492 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26792 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1248 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 688 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24880 ) - zeroed variables (global, static) in RAM/HEAP

Sketch uses 257220 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26816 bytes (32%) of dynamic memory, leaving 55104 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM9
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\dink\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File "C:/Users/dink/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/dink/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 483, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_

Re: WEMOS D1 connection problems (timed out waiting for pack

PostPosted: Sat May 30, 2020 5:46 pm
by xtal
Your print out is close to mine except I do not see the top 2 lines? Not sure what that means.
I,ve seen this error. I think it is tied to the com port, some times , recompiling works. Some times I need to
stop serial monitor the restart serial monitor. I have 1 time had to reload 1,8.12 was getting a lot of errors.
FYI:
There are at least 3 flavors of WEMOS R1 / R2 / R3 , not sure if this is offical or not....
From what I've read you board looks like R1 [ esp-12E per the antenna? ] . My 1st 2 WEMOS were said to be R2, but I think are R1 with esp12-F [ per antenna ] I ordered an R2 last week , the board pin outs are different,
It won't support ARDUINO shields. The last 3 WEMOS I ordered were R3? . They have the arduino pinout.
The R1 and R3 have A0 buttom left .
The R2 has A0 + SDA, SCL and GPIo's to Board pins are screwy, so I'd say stay with R1/R3..

My WEMOS R1/R3 will support 4 relay Catalex shield directly.
I am using I2c LCD using 5 volt and DS3231 using 3.3 volt , I'm running the the SDA/SCL to both with no lvl shifting.
[ the only LCD input pin is grounded. so I don't think there is any issue] , both appear to be working fine.
I using GPIO0 and GPIO2 for I2c [ board pins D8 & D9 ] GPIO13-D7-relay1, 12-D6-relay2, 14-D5-relay3
4-D4-relay4, 16-D2 [ havn't found any workable use] , 5-D3

hope this may help.......

Re: WEMOS D1 connection problems (timed out waiting for pack

PostPosted: Tue Aug 18, 2020 10:02 pm
by Shigsy
I have the same issue with a Wemos D1 Mini Pro. The odd thing is, it worked fine for 6 or 7 sketch uploads over the course of maybe 2 hours, then suddenly this... I have two of the same Wemos controllers and was swapping between them during that time. Now one consistently gives the same issue you are seeing, while the other consistently works fine. I've tried unplugging and replugging in many time, different USB cables, different ports, restarted the IDE and the controller many times, downgraded the esp8266 board driver in the Arduino IDE to lots of different versions, upgraded again to 2.7.3, all did nothing to help.

The irregular flashing led during the attempted upload gives me the impression it's not in upload mode. Pressing reset and uploading a sketch should be all you need to do on these boards but it seems "stuck" in some mode wont accept an upload. I tried grounding GPIO0 (D3) and tried putting 3.3v onto the RST pin for a couple of seconds, as had been suggested online, but no change.

Anyone any ideas?

Re: WEMOS D1 connection problems (timed out waiting for pack

PostPosted: Sun Aug 15, 2021 6:54 am
by axel0909
Hi i am using wemos D1 R1 and i can not upload my code. I have this error :

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

I check on google of course and try to do all things on the differente forum (cable change, GPIO0 to GND, GPIO15 to GND, both of them to GND) but nothing works.
It's been 3 days i try to fix it.

What i notice it when i put the GPIO12 or GPIO15 to GND my wifi's module LED turn on (blue color).

Any one to help me please ?