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

    Instructions for upgrading Pytrack / LoPy

    Scheduled Pinned Locked Moved Firmware
    lopy
    25 Posts 5 Posters 9.1k Views 5 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.
    • H Offline
      hjl
      last edited by

      Hi jcaron,

      Thanks for your reply. Unfortunately no luck with both methods. I used the jumper cable correctly but it keeps giving me an error:

      0_1501617284777_unnamed.png

      And the dfu-util shows a success, but after using the os.uname() i still see the 1.0.0.1b version coming up.

      Can't see what I am missing.

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

        @hjl The version returned by os.uname() is that of the LoPy firmware.

        dfu-util upgrades the Pytrack firmware. You can see that version using read_fw_version() in the Pytrack library.

        If you have issues upgrading the LoPy firmware, you can try unchecking the "high-speed transfer". Did you select the right serial port?

        I never managed upgrading with the GUI upgrader on macOS myself. What I do:

        • reboot the board with P23-GND connection

        • check that it's indeed in upgrade mode with:

          esptool.py --port /dev/cu.usbmodemPy343431 --after no_reset read_mac
          
        • download firmware from https://software.pycom.io/downloads/LoPy_868-1.7.8.b1.tar.gz

        • upgrade with:

          python2.7 /Applications/Pycom\ Firmware\ Update.app/Contents/Resources/src/bin/updater.py -s 57600 -t LoPy_868-1.7.8.b1.tar.gz -p /dev/cu.usbmodemPy343431
          
        • reboot

        Once you are on a firmware version >=1.7.7 you can use FTP to upgrade, it's much easier.

        1 Reply Last reply Reply Quote 1
        • H Offline
          hjl
          last edited by

          Thanks for your help so far. Seems to have no luck with that either, I have the jumper in the 4th pin on the left side and the 2nd pin on the right (USB conn on top). Should be OK, right?

          0_1501746005618_Screen Shot 2017-08-03 at 09.39.39.png

          Unchecking high-speed transfer didn't work either. Do I need to install some additional driver for my mac? I have the newer one with the USB-C ports.

          J J 2 Replies Last reply Reply Quote 0
          • J Offline
            jmarcelino @hjl
            last edited by

            @hjl
            Out of curiosity how are you placing a jumper while the LoPy mounted on the Pytrack? Seems really difficult to me, I have had to use test clips to do it.

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

              @hjl just to be sure, you do have that jumper while you power on the board, right?

              1 Reply Last reply Reply Quote 0
              • H Offline
                hjl
                last edited by

                Yes, thanks.. I was confused about the expansion board and 'jumpers' assuming I first was updating the Pytrack itself without connecting the LoPy. So! Almost there I guess.. :) But still;

                0_1501750713210_Screen Shot 2017-08-03 at 10.56.39.png

                Any last tricks?

                B J 2 Replies Last reply Reply Quote 0
                • B Offline
                  bucknall @hjl
                  last edited by

                  Hi @hjl,

                  We'll be releasing an update for our firmware update tool (later this month) that will automatically let you update via the pytrack/pysense.

                  For the time being, you can try this method to update the lopy via the Pytrack -

                  1. Open the Firmware Update Tool and set the speed to low speed.
                  2. Ensure that GND and P2 (G23) are connected
                  3. Reset the LoPy (press the reset button on the LoPy)

                  It's a little difficult to do at the moment so we're planning to make it easier but with a bit of practice, this method does work!

                  Thanks,

                  Alex

                  Developer Evangelist - Pycom

                  H 1 Reply Last reply Reply Quote 1
                  • J Offline
                    jmarcelino @hjl
                    last edited by jmarcelino

                    @hjl
                    That means the LoPy is not in firmware update mode.

                    You do need to start it (power up or reset) mounted on the Pytrack and with the P23-GND connection in place.

                    On the Pytrack that is difficult because you either need to precariously "touch" the a bit of wire to the pins (risking a short-circuit), use test "grabber" clips to grab onto the pins which not everyone has, or place the LoPy on a breadboard and then run jumper wires between the pins on the Pytrack to the corresponding LoPy pins on the breadboard (just 5V power, GND, P0 and P1 should be enough)

                    1 Reply Last reply Reply Quote 1
                    • H Offline
                      hjl
                      last edited by

                      I use the 'grabbers'. The Pycom Updater doesn't seem to work unfortunately. And now I can confirm that I am in the right mode:

                      0_1501754148945_Screen Shot 2017-08-03 at 11.55.20.png

                      And I have some progress:

                      0_1501754167128_Screen Shot 2017-08-03 at 11.53.32.png

                      But the monitor gives this:

                      0_1501754269611_Screen Shot 2017-08-03 at 11.57.29.png

                      So I think something went wrong while upgrading?

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

                        @hjl using the same method but at 57600 usually works for me. Not sure if that makes any difference.

                        H 2 Replies Last reply Reply Quote 0
                        • H Offline
                          hjl @jcaron
                          last edited by

                          @hjl Tried different rates as well..! 0_1501956916246_IMG_2350.JPG

                          H 1 Reply Last reply Reply Quote 0
                          • H Offline
                            hjl @bucknall
                            last edited by

                            @bucknall The preconfigured serial port in the updater tools doesn't match my serial port. 0_1501957170445_Screen Shot 2017-08-05 at 20.18.23.png

                            0_1501957182479_Screen Shot 2017-08-05 at 20.18.37.png

                            cu.
                            tty.

                            difference...? I connect with an adapter through a USB-C port.

                            J 1 Reply Last reply Reply Quote 0
                            • H Offline
                              hjl @hjl
                              last edited by

                              @hjl @bucknall @jmarcelino any ideas?

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                jmarcelino @hjl
                                last edited by

                                @hjl
                                You usually get a cu. and tty. port on macOS (actually it's a BSD thing, so the same for FreeBSD and other *nixes) they should be effectively the same thing other than historical differences.

                                To be honest I never managed to upgrade the firmware using the Pytrack on high or low speed - neither worked - but I haven't tried in latest Pytrack firmware.

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  bucknall
                                  last edited by

                                  Hi @hjl,

                                  Apologies for the slow reply, I've been out of office for the last few days.

                                  I've just tried the update procedure with a Pysense and LoPy, without any problems. I'll try it again with a Pytrack but the firmware is practically identical for the two shields.

                                  Have you updates the firmware on your Pytrack Shield? If you're using an older version of the firmware then this might be preventing you from updating.

                                  Thanks,

                                  Alex

                                  Developer Evangelist - Pycom

                                  H 1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    hjl @bucknall
                                    last edited by

                                    @bucknall Hi, I've use the dfu-util to upgrade it with the 0.0.4 version and that seemed to be going OK..

                                    H 1 Reply Last reply Reply Quote 1
                                    • H Offline
                                      hjl @hjl
                                      last edited by

                                      @bucknall But still experiencing upgrade problems for the lopy..

                                      B 1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        bucknall @hjl
                                        last edited by

                                        Hi @hjl,

                                        What seems to be the issue? Is it still not going in firmware upgrade mode?

                                        Developer Evangelist - Pycom

                                        1 Reply Last reply Reply Quote 0
                                        • H Offline
                                          hjl @jcaron
                                          last edited by

                                          @bucknall I am failing at this point.. Staying in bootloader means I am in firmware upgrade mode, right?

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            bucknall @hjl
                                            last edited by

                                            @hjl If you use the Pymakr Plugin or a Serial Terminal to view the output from your device when you boot up (with pins GND and G23 connected), you will see a message like this appear:

                                            0_1502873747457_Screen Shot 2017-08-16 at 09.55.19.png

                                            This means your device is correctly going into firmware update mode.

                                            Now to use the Firmware Update Tool, you must unplug the USB cable from your computer and plug it into another port (sometimes Windows/Mac/Linux, do not release the serial address). Ensure that the jumper wire is in exactly the same position as when you saw the message appear above.

                                            Now run the Firmware Upgrade Tool and 'un-select' the box for High speed Transfer.

                                            This should then run successfully. Let me know if that helps!

                                            Thanks,

                                            Alex

                                            Developer Evangelist - Pycom

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

                                            Pycom on Twitter

                                            Pycom