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

    Gpy updating firmware with USB UART

    Scheduled Pinned Locked Moved Firmware
    11 Posts 4 Posters 445 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.
    • M Offline
      mtulabot
      last edited by

      I've been trying to update the Gpy firmware thru the USB UART but I'm unable to connect it the installer. I get Failed to connect to ESP32: Timed out waiting for packet header. I was able to connect with it thru wifi but Idk how I would update it from there. Please help.

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

        @mtulabot How do you connect the GPY. Are you using a PyCom expansion board or a standard USB/UART bridge. In any case, if you connect P2 to GND and push reset, then the firmware update mode is active. That should be done by the PyCom expansion board, but you can do that also manually.

        1 Reply Last reply Reply Quote 0
        • M Offline
          mtulabot
          last edited by

          I have connected the Gpy with a standard USB/UART bridge. Also connected p2 and GND, pushed reset and tried to update. I also installed the driver for the USB/UART needed for it. Here is how it looks like. !20190925_230947.jpg

          M P 2 Replies Last reply Reply Quote 0
          • M Offline
            mtulabot @mtulabot
            last edited by

            @mtulabot I still get the same error

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

              @mtulabot Does REPL work? If yes, you have connected the GPY with a terminal emulator (Putty, etc), connect P2 to GND and push reset, you should see in the terminal window something like:

              rst:0x1 (POWERON_RESET),boot:0x2 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_FEO_V2))
              waiting for download
              

              If not, the device is not in download mode. If yes, you could try to reduce the UART speed in the downloader. Not all USB/UART devices support high speed.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mtulabot @robert-hh
                last edited by

                @robert-hh REPL works only when I connected the laptop and Gpy thru wifi.
                Okay I will try to reduce the speed of the downloader. How would I do that? Is it from the pycom installer and uncheck highspeed transfer?

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

                  @mtulabot Are you sure you have a good USB cable? Some cables only support charging and have no data wires. And you can try to swap the RX/TX wires. The labeling is not always consistent.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mtulabot @robert-hh
                    last edited by

                    @robert-hh That actually worked! I switched the RX/TX cable and I was able to connect via USB UART. Thank you so much! Question, would I need the antennae to be able to connect/scan for wifi? I tried the example on the DOCS connecting to a router on boot, but with the command WLAN.isconnected() it returns FALSE.

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

                      @mtulabot For WiFi you do not need an external antenna. There is an on-board antenna. The connection to a route takes a few seconds. So you have to wait a while, e.g. in a look, to connect. The example here: https://docs.pycom.io/tutorials/all/wlan/ should work. These statements are the core of it, if you know the SSID and authentication mode of your router:

                      from network import WLAN
                      wlan = WLAN(mode=WLAN.STA)
                      wlan.active(True)
                      wlan.connect('mywifissid', auth=(WLAN.WPA2, 'mywifikey'), timeout=5000)
                      while not wlan.isconnected():
                          machine.idle() # save power while waiting
                      print('WLAN connection succeeded!')
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        p s @mtulabot
                        last edited by

                        @mtulabot Did you manage to upload code with the pymakr extension using this UART-USB interface?

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          Gijs
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0

                          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