I have this error while uploading my code to ESP8266 despite the fact that the code runs without errors. I have the git version of installation for the board.


File"C:/../../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 1889, in slip_reader
raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x46)
esptool.FatalError: Invalid head of packet (0x46)

Any help with this? Thanks.

  • is the esp8266 in flashing mode? – Juraj Sep 21 '19 at 12:11
  • How do I know If its in flashing mode? – Charis Komos Sep 21 '19 at 12:41
  • 1
    io 0 must be pulled down at boot to start in flashing mode. how did you wire the esp8266 module? how is it connected to PC? – Juraj Sep 21 '19 at 13:06
  • why do you say that the code runs without errors? ... how can the code run if you are unable to load it into the ESP8266? – jsotola Sep 21 '19 at 16:12
  • I press the "verify" button and is running without errors. My esp8266 module is connected via usb cable. I didn't understand what you are saying about "io 0 must be pulled down..." – Charis Komos Sep 21 '19 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.