-->
Page 1 of 1

Error connecting to ESP8266

PostPosted: Sun Nov 08, 2020 8:16 am
by Gerrit
Hi all,

I bought myself an AZ-Delivery ESP8266MOD 12-F Controller. Problem is, I can't properly connect to it via the Arduino IDE.

Here's what I've already done:

- installed USB to serial drive CH341SER.inf
- added the additional board manager URL: http://arduino.esp8266.com/stable/packa ... index.json in the Arduino Preferences
- installed the ESP8266 Community Board Library
- tried different Versions: 2.7.3 (most recent), 2.6.3, 2.4 (none seem to work)
- selected the LOLIN(WEMOS)D1 R2 & mini Board
- selected PORT which D1 mini is connected to (double checked with device manager)

Windows also recognized the board when plugging into an USB Port. Compiling of the code works fine, but the problems begin while uploading the sketch. The Board even starts blinking but then the following Error message appears:

Arduino: 1.8.13 (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, 921600"
Executable segment sizes:
IROM : 227772 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26836 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1264 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 672 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24896 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 256544 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26832 bytes (32%) of dynamic memory, leaving 55088 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM9
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\ggoih\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File C:/Users/ggoih/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/ggoih/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/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

Did someone already have such a problem ?
Happy for any help :)
Greetings

Re: Error connecting to ESP8266

PostPosted: Sun Nov 08, 2020 1:08 pm
by schufti
Try a lower baudrate, make sure com9 really is the D1mini board (vanishes if you unplug the board)

Re: Error connecting to ESP8266

PostPosted: Sun Nov 15, 2020 9:50 am
by VicIsStuck
I have got the exact same issue, the COM port is correct and a lower baudrate does not work for me. Also I managed to upload the blink sketch correctly the first time, but couldnt upload anything after that.

Re: Error connecting to ESP8266

PostPosted: Sun Nov 15, 2020 2:36 pm
by schufti
you could try going backt to 2.4.2 with the old flashing tool and see if this works ... then file an issue on github?
p.s.: if you are experimenting with deepsleep don't forget to disconnect gpio16 and rst.