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

    Failure using Firmware Update Tool on LOPY 1.0

    Scheduled Pinned Locked Moved Firmware
    lopybugwifi
    7 Posts 4 Posters 1.4k 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.
    • philwilkinsonP Offline
      philwilkinson
      last edited by

      I am trying to update the firmware on a Lopy 1.0 on a Pysense 1.0 board.
      I have the latest versions of the pysense firmware, and the Firmware Upgrade Tool and I am running the Update Tool on Linux.
      The Pysense firmware was upgraded without issue.
      The upgrade on the firmware upgrade tool failed with the error "Something Failed Trying to connect to the device".
      I have followed all the advice on this forum but still get the same error. I have performed this update in the past without error.
      Any help from the gentlemen at Pycom would be appreciated.

      T J A 3 Replies Last reply Reply Quote 0
      • T Offline
        Thosch42 @philwilkinson
        last edited by

        @philwilkinson
        Have you checked or changed your USB cable. I had a similar issue last week. And after I changed my cable (I worked with some month without any problems) to a shorter and brand new one, everything works well.

        Cheers,
        Thomas

        1 Reply Last reply Reply Quote 0
        • philwilkinsonP Offline
          philwilkinson
          last edited by

          Thanks for the advice @Thosch42 . However I use a very short USB cable. It also worked for the Pysense firmware upgrade and I have used it previously for the Lopy upgrades. I am worried this may be a firmware compatibility issue.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @philwilkinson
            last edited by

            @philwilkinson A few things to try:

            • make sure there’s nothing else trying to open the serial port (pymakr, screen...)
            • use the cli version and report its output
            • on the device, use pysense.read_fw_version() to check it was correctly updated. Sometimes the dfu-util tool reports success but the Pysense actually isn’t upgraded
            philwilkinsonP 1 Reply Last reply Reply Quote 0
            • philwilkinsonP Offline
              philwilkinson @jcaron
              last edited by

              @jcaron thanks for the advice,
              1-I double checked nothing is trying to access the serial port
              2-running os.uname() in the repl provides

              (sysname='LoPy', nodename='LoPy', release='1.12.0.b1', version='v1.8.6-849-fcbbfe3 on 2018-01-03', machine='LoPy with ESP32', lorawan='1.0.0')

              3- unfortunately the pysense is not looking good:

              import pysense
              pysense.read_fw_version()
              Traceback (most recent call last):
              File "<stdin>", line 1, in <module>
              AttributeError: 'module' object has no attribute 'read_fw_version'

              so instead I tried

              o=open('pysense.py','r')
              o.read()
              "from pycoproc import Pycoproc\n\n__version__ = '1.4.0'\n\nclass Pysense(Pycoproc):\n\n def init(self, i2c=None, sda='P22', scl='P21'):\n Pycoproc.init(self, i2c, sda, scl)\n"

              1 Reply Last reply Reply Quote 0
              • A Offline
                andrethemac @philwilkinson
                last edited by

                @philwilkinson I had the same problem on linux using the commandline tool, but the gui version did work without errrors (but it took some time (more than a three minutes)
                André

                philwilkinsonP 1 Reply Last reply Reply Quote 0
                • philwilkinsonP Offline
                  philwilkinson @andrethemac
                  last edited by

                  @andrethemac thanks for the advice, you saved me a lot of wasted time.
                  I was able to use the Windows Pycom Upgrade Tool without any problems.

                  It seems the Linux command line tool does not work.
                  Can someone form Pycom confirm they have tested this? If so I will raise something in GitHub as it looks like a bug.

                  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