Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Failed to connect to ESP32: Invalid head of packet.('\x08')

    Scheduled Pinned Locked Moved Getting Started
    lopy connection
    10 Posts 4 Posters 1.6k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      thiamugb
      last edited by

      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

      1 Reply Last reply Reply Quote 3
      • N Offline
        nadvorvo
        last edited by

        Hi everyone,
        I hope you can help in this matter.
        Thanks a lot for writing back.
        Regards, Vojtech

        I 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.gz

        I 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)

        robert-hhR 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @nadvorvo
          last edited by

          @nadvorvo try to lower the speec.

          1 Reply Last reply Reply Quote 0
          • N Offline
            nadvorvo
            last edited by

            Hi @robert-hh, @Gijs
            Thank you for your reply.

            I have tested both 115200/57600 Baud. Result is same:
            6b614fb1-1a5a-4929-810c-dd1ae0b45c89-image.png

            59ca7bfb-ef87-414c-bac1-6dddb90a1b84-image.png

            Thanks a lot for writing back.
            Thank you in advance for your assistance.
            Regards, Vojtech

            robert-hhR 1 Reply Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @nadvorvo
              last edited by

              @nadvorvo Can you get a REPL prompt if you connect with the board using screen or the like?

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                nadvorvo @robert-hh
                last edited by

                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

                f4570021-7365-45ed-8aef-47c0f718b193-image.png

                robert-hhR 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @nadvorvo
                  last edited by

                  @nadvorvo Did you terminate Atom with command-Q before uploading the firmware?

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    nadvorvo @robert-hh
                    last edited by

                    Hi @robert-hh,
                    sure Atom was terminated (no other app using this COM port)

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      nadvorvo @nadvorvo
                      last edited by

                      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 ok

                      You can recognize being or not being in bootloader mode:
                      LED flashing in period aprox. 3 second ... not being in bootloader mode
                      LED off ... bootloader mode

                      Regards, Vojtech

                      T 1 Reply Last reply Reply Quote 2
                      • T Offline
                        Theodor Kier @nadvorvo
                        last edited by

                        @nadvorvo For anyone having the same issue today, this solved it for me too

                        1 Reply Last reply Reply Quote 1

                        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
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom