Failed to connect to ESP32: Invalid head of packet.('\x08')
-
hi all,
I am new users of Pycon LoPy i want to test my board.
I use pycon hello_world in C at this https://github.com/pycom/pycom-esp-idf.
when i flash then with eclipse i have a mistake saying .
"""""
Connecting.....................................................A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('\x08')
make: *** [flash] Error 2
"""""
i don't know where is my problem.
I use mac os x.
Need help.
thanx -
Hi everyone,
I hope you can help in this matter.
Thanks a lot for writing back.
Regards, VojtechI am following this tutorial:
https://docs.pycom.io/updatefirmware/device/expansion board: V3.1
GPy V1.2
I am downgrading to version GPy-1.20.2.r1.tar.gzI do not connect a jumper cable or wire between G23 and GND (only for version 2.0)
LED blinks blue (GPy not in programing mode).It fails with message:
pycom failed to connect to esp32 invalid head of packet (\x08) -
@nadvorvo try to lower the speec.
-
Hi @robert-hh, @Gijs
Thank you for your reply.I have tested both 115200/57600 Baud. Result is same:


Thanks a lot for writing back.
Thank you in advance for your assistance.
Regards, Vojtech -
@nadvorvo Can you get a REPL prompt if you connect with the board using screen or the like?
-
Hi @robert-hh, @Gijs
Thank you for prompt reply. The GPy is normally working with ATOM (python REPL is ok).Thank you in advance for your assistance.
Regards, Vojtech
-
@nadvorvo Did you terminate Atom with command-Q before uploading the firmware?
-
Hi @robert-hh,
sure Atom was terminated (no other app using this COM port) -
Finally thanks to @robert-hh problem was identified:
even it is V3.1 expansion board it was necessary to force Bootloader mode by connecting P2 to GND + pushing Reset
then everything was okYou can recognize being or not being in bootloader mode:
LED flashing in period aprox. 3 second ... not being in bootloader mode
LED off ... bootloader modeRegards, Vojtech
-
@nadvorvo For anyone having the same issue today, this solved it for me too
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login