Cannot Flash Wemos ESP32 D1 Mini

I have just had an issue where I couldn’t flash my ESP32 Wemos D1 mini, It was giving me the following error:

Failed to connect to ESP32 invalid head of packet 0x65

which I believe is similar to other similar errors like:

Invalid head of packetĀ (‘S’)

Invalid head of packet (‘w’)

Invalid head of packetĀ (‘p’)

There were a number of different suggestions online including:

  • Try lowing the Baud rate
  • Try pressing the reset button on start
  • Try pressing the boot button (there isn’t one on the Wemos D1 Mini)

However, the one thing which worked for me to was short IO0 to GND while Arduino flasher was trying to connect to the board. That allowed it to programme.

Leave a Reply

Your email address will not be published. Required fields are marked *