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

    Updating firmware via serial/USB?

    Scheduled Pinned Locked Moved LoPy
    6 Posts 3 Posters 3.0k Views 3 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
      Taki
      last edited by

      Hi,

      is there a way to update the firmware using the serial connection? If I didn't oversaw something, it seems that one can do that only via WLAN...

      Regards,

      Taki

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        abilio @Taki
        last edited by

        Hello @Taki,

        At present time, is only possible over WLAN. The possibility of doing it over serial will be included in an upcoming release of Pymakr, yet you'll need to upgrade your device using the tool (WLAN only) before being able to keep updating it with Pymakr.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Taki
          last edited by

          Thanks for the clarification! IMHO there should be always a wired update method, because sooner or later users will misconfigure WLAN. There's always restore to delivery status but one probably needs to rewire LoPy for that...

          1 Reply Last reply Reply Quote 1
          • X Offline
            Xykon administrators
            last edited by

            It's possible to read and write the entire flash of the LoPy with esptool.py via serial. It's just a matter of PyCom releasing a firmware package that uses esptool instead of WiFi.

            It is always possible to go back to the original firmware with factory settings by using safeboot mode so it's always possible to come back from bad wifi settings. You do need to connect a wire between 3.3V and the safeboot pin to go back to factory firmware / configuration but you also need to connect a wire between GND and the bootloader pin if you want to update via serial using esptool.

            P.S. How does one earn "reputation" so you don't have to wait 10 minutes between every post?

            Christian Ehlers

            1 Reply Last reply Reply Quote 1
            • T Offline
              Taki @abilio
              last edited by

              Thanks for the clarification @abilio ! Now that I can access them LoPys, I updated them easily.

              1 Reply Last reply Reply Quote 0
              • X Offline
                Xykon administrators
                last edited by

                I can confirm now that updating via USB/Serial is definitely possible... if you are adventurous you can try the command I posted here otherwise it might be worth to wait a few more days for pycom to release an official upgrade package.

                Christian Ehlers

                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