Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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
share|improve this question

you need to switch the ESP8266 into download mode (one of it's boot modes)

this mean to make sure that when you flashing GPIO2 is HIGH and GPIO0 is LOW. then to boot to your new code GPIO0 need to be HIGH

share|improve this answer
1  
GPIO15 MUST be LOW, which is more important than GPIO2 being HIGH - in fact, with GPIO15 LOW, state of GPIO2 is "don't care" in some documentation I've read (which may be wrong I admit) ... but ALL documentation states GPIO0 and GPIO15 MUST be LOW to enter flash mode – Jaromanda X Jun 13 at 23:24

I was running into the same error and it took me several weeks to resolve. For me setting my baud rate to 9600 (or probably anything lower than 115200) resolved the issue for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.