Failed to connect to ESP32: Invalid head of packet ('6')
Posted: Thu Jan 26, 2017 3:13 am
I just received a shiny new ESP32 Dev Board from Adafruit and am getting the above error when trying 'make flash' with the hello world getting started example.
The exact log output is:
lane@ESPDev:~/esp/esp-idf/examples/get-started/hello_world$ make flash
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-beta1
Connecting...........................................
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('6')
/home/lane/esp/esp-idf/components/esptool_py/Makefile.projbuild:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Everything is pretty much as defined following along with the tutorials. This is a brand new Virtual Box Ubuntu 16.04 VM (running on a Win10 host) built just for this purpose so other than apt update and the esp-idf tutorials its straight from the ISO.
I can connect to the device with minicom and I see UART/serial output when I RST the device so the USB port is okay. I did see some threads with folks having a similar issue with the REV1 boards. I confirmed I have the REV2 board. I also saw a thread saying to hold the EN button for 2 seconds for the REV2 boards. That made no difference for me (also the error was slightly different anyways).
Out of fear of bricking the new shiny I am punting. Can anyone offer some ideas of things to try?
The exact log output is:
lane@ESPDev:~/esp/esp-idf/examples/get-started/hello_world$ make flash
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-beta1
Connecting...........................................
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('6')
/home/lane/esp/esp-idf/components/esptool_py/Makefile.projbuild:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Everything is pretty much as defined following along with the tutorials. This is a brand new Virtual Box Ubuntu 16.04 VM (running on a Win10 host) built just for this purpose so other than apt update and the esp-idf tutorials its straight from the ISO.
I can connect to the device with minicom and I see UART/serial output when I RST the device so the USB port is okay. I did see some threads with folks having a similar issue with the REV1 boards. I confirmed I have the REV2 board. I also saw a thread saying to hold the EN button for 2 seconds for the REV2 boards. That made no difference for me (also the error was slightly different anyways).
Out of fear of bricking the new shiny I am punting. Can anyone offer some ideas of things to try?