title: ESP266 Timed out waiting for packet header
body: <p>I am trying to flash the AT firmware in <code>esp8266</code> but I am always getting the error of timed out waiting for packet header. </p>
  
  <p>Note : I am using <code>esptool.py</code> to flash the the chip and I already have some code uploaded to it, which I uploaded using <code>Arduino IDE</code> </p>
  
  <p>Here is the error which i am getting while writing flash:</p>
  
  <pre><code>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...
  </code></pre>
  
  <p>A fatal error occurred: Timed out waiting for packet header</p>