ESP266 Timed out waiting for packet header

帅比萌擦擦* 提交于 2020-01-04 02:57:08

问题


I am trying to flash the AT firmware in esp8266 but I am always getting the error of timed out waiting for packet header.

Note : I am using esptool.py to flash the the chip and I already have some code uploaded to it, which I uploaded using Arduino IDE

Here is the error which i am getting while writing flash:

root@mayank-HP-Notebook:/home/mayank/Desktop# esptool.py -b 115200 -p /dev/ttyACM0 
write_flash 0x000000 "ESP_8266_BIN0.92.bin" esptool.py v1.2-dev 
Connecting... Running Cesanta flasher stub...

A fatal error occurred: Timed out waiting for packet header


回答1:


Had the same issue while connected via USB to my desktop. Tried everything: changed even the cable but eventually I've put the USB cable in another USB slot and it worked !! Seems that the non-working USB slot in front of my desktop is an extension of the USB on motherboard, only the native slots in the back of my desktop are working for ESP-flash. Never experienced other issues with it.




回答2:


Most likely the ESP is not being put into flash mode. If it has buttons, hold flash, and then press reset, then run the tool.

But you haven't mentioned which ESP module you use, and in what setup.




回答3:


The chip may not be able to automatically enter the correct bootloader mode. On most development boards, esptools.py automatically selects bootloader mode. I was using a NodeMCU model. The following link helped a lot. https://github.com/espressif/esptool/wiki/ESP8266-Boot-Mode-Selection




回答4:


use external power, ESP8266 models usually very sensitive to power




回答5:


I had the same problem and solved it following that steps:

  1. Connect the GPIO0(Pin 5) to the GND(Pin 7) with a wire.
  2. Restart the board(Power off/Power on).
  3. Run the command:

sudo python esptool.py --port /dev/ttyUSB0 write_flash 0x00000 /opt/desarrollo/ESP8266/My_Firmware.ino.bin

Where:

ttyUSB0 is the computer port on the ESP is connected.

/opt/desarrollo/ESP8266/My_Firmware.ino.bin is the path of the compiled firmware.

Hope it helps someone :)



来源:https://stackoverflow.com/questions/37742559/esp266-timed-out-waiting-for-packet-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!