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

I have this material : 
https://www.amazon.fr/gp/product/B088LSTG9P
I Install :
Blynk library
In preference I past 
https://arduino.esp8266.com/stable/package_esp8266com_index.json
In Tools I have correctly selected my [b]generic esp8266 module[/b]
My code:
/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  This example runs directly on ESP8266 chip.

  Note: This requires ESP8266 support package:
    https://github.com/esp8266/Arduino

  Please be sure to select the right ESP8266 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "TOKEN";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "NAME";
char pass[] = "PASSWORD";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}
Error :
Arduino : 1.8.14 Hourly Build 2021/03/09 09:33 (Windows 10), Carte : "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:

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

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

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

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

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

Le croquis utilise 279384 octets (29%) de l'espace de stockage de programmes. Le maximum est de 958448 octets.

Les variables globales utilisent 29108 octets (35%) de mémoire dynamique, ce qui laisse 52812 octets pour les variables locales. Le maximum est de 81920 octets.

esptool.py v2.8

Serial port COM1

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

  File "C:\Users\natfe\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/upload.py", line 65, in <module>

    esptool.main(cmdline)

  File "C:/Users/natfe/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/esptool\esptool.py", line 2890, in main

    esp.connect(args.before)

  File "C:/Users/natfe/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.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



_
[pre]Normally I have to do as in the picture is insert the key at the same time but I don't have the impression that it works

and I have a feeling that it is not detected because on any place where I plug it. I only detect COM1[/pre]

image.PNG

image.PNG

I see no hardware schematic, and I have no clue as to that the KEY is, I see some wires and a circuit board with an antenna. More information will help.

that is simply a USB CH340 adapter which allows you to program the ESP8266

That error almost always means that the ESP is not in the flash mode or you have selected the wrong CPM port.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.