Failed to connect to ESP8266: Timed out waiting for packet header

Hello all,

I tried to upload my sample code. But I got this error message below. I connected the ESP8266 card to Arduino Uno.

Arduino:1.8.13 (Windows Store 1.8.39.0) (Windows 10), Kart:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), no dtr (aka ck), 26 MHz, 40MHz, QIO (fast), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Serial, None, Only Sketch, 115200"

Executable segment sizes:

IROM   : 333468          - code in flash         (default or ICACHE_FLASH_ATTR) 

IRAM   : 28152   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 

DATA   : 1404  )         - initialized variables (global, static) in RAM/HEAP 

RODATA : 2260  ) / 81920 - constants             (global, static) in RAM/HEAP 

BSS    : 25304 )         - zeroed variables      (global, static) in RAM/HEAP 

esptool.py v2.8

Serial port COM3

Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):

  File "C:\ArduinoData\packages\esp8266\hardware\esp8266\2.7.1/tools/upload.py", line 65, in <module>

    esptool.main(cmdline)

  File "C:/ArduinoData/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 2890, in main

    esp.connect(args.before)

  File "C:/ArduinoData/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



_



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Which ESP8266 module do you have ?

.