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

    FiPy firmware upgrade failed - Cat M1

    Scheduled Pinned Locked Moved FiPy
    firmwareupdatepytracksqnsupgradecat m1
    32 Posts 6 Posters 5.9k Views 8 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.
    • A Offline
      ArnaudP @rskoniec
      last edited by

      @rskoniec Ok ! So I have formatted it again and now it works !

      Now here's the new issue :

      Attempting AT wakeup...
      Session opened: version 1, max transfer 8192 bytes
      Sending 55498 bytes: [########################################] 100%
      Received ERROR from AT+SMSWBOOT=0,1! Aborting!
      Unable to upgrade bootrom.
      Unable to load updater from /sd/updater.elf
      
      R 1 Reply Last reply Reply Quote 1
      • R Offline
        rskoniec @ArnaudP
        last edited by rskoniec

        @arnaudp I think you've got incomplete file/files - 55498 bytes is too short (incomplete download from https://software.pycom.io/downloads/sequans2.html ?).

        CATM1-39529.dup is almost 6MB big
        updater.elf is over 400KB big

        The machine is working as good as it's code.

        A 2 Replies Last reply Reply Quote 0
        • A Offline
          ArnaudP @rskoniec
          last edited by ArnaudP

          @rskoniec Yup, that's the file I have on my disk, just checked the size with a freshly dowloaded version. It seems that it's the sending that didn't work. And now it says it won't detect the modem (perhaps because of faulty upgrade). Ok not anymore
          But my files are the right ones on the disk :/

          1 Reply Last reply Reply Quote 0
          • A Offline
            ArnaudP @rskoniec
            last edited by

            @rskoniec
            With some debug infos. We can see the files are listed with their right size :

            File /sd/updater.elf has size 429340
            File /sd/CATM1-39529.dup has size 6059510
            

            Here is the complete log :

            >>> sqnsupgrade.run('/sd/CATM1-39529.dup', '/sd/updater.elf', debug=True)
            <<< Welcome to the SQN3330 firmware updater [1.2.0] >>>
            >>> FiPy with firmware version 1.18.1.r4
            File /sd/updater.elf has size 429340
            File /sd/CATM1-39529.dup has size 6059510
            Modem state: 2
            Checking bootrom & application
            Checking line
            Checking line SYSTEM VERSION
            Checking line ==============
            Checking line   FIRMWARE VERSION
            Checking line     Bootloader0* : 5.1.1.0 [33080]
            old_br: True
            Checking line     Bootloader1  : NA
            Checking line     Bootloader2  : NA
            Checking line     NV Info      : 1.1,0,0
            Checking line     Software     : 5.1.1.0 [33080] by robot-soft at 2017-10-27 07:49:11
            old_sw: True
            Checking line     UE           : Unknown
            Checking line   COMPONENTS
            Checking line     ZSP0         : 1.0.98-12323
            Checking line     ZSP1         : 1.0.98-12295
            Checking line
            Checking line OK
            Checking line
            Returning: True
            mirror? False  recover? False  resume? False  direct? False  atneg_only? False bootrom? True load_fff? False
            Initial prepartion complete...
            Loading built-in recovery bootrom...
            Attempting AT wakeup...
            b'\r\nOK\r\n'
            Entering upgrade mode...
            AT+SMOD? returned 2
            AT+SMSWBOOT=3,1 returned: b'\r\nOK\r\n'
            Response after reset: b'\r\nERROR\r\n'
            Starting STP
            <<<=== DO NOT DISCONNECT POWER ===>>>
            Sending AT+SMSTPU="ON_THE_FLY"
            Starting STP code upload
            magic=0x74736166, op=0x80, sid=0x0, plen=0x0, tid=0x0, hcrc=0x0, pcrc=0x18
            Correct SRSP signature: 0x74736166
            Session opened: version 1, max transfer 8192 bytes
            Sending 55498 bytes: [########################################] 100%
            Bootrom updated successfully, switching to recovery mode
            AT+SMSWBOOT=0,1 returned b'\r\nERROR\r\n'
            Received ERROR from AT+SMSWBOOT=0,1! Aborting!
            Success1? False
            Unable to upgrade bootrom.
            Success2? False
            Unable to load updater from /sd/updater.elf
            
            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rskoniec @ArnaudP
              last edited by rskoniec

              @arnaudp One more thing just came to my mind - do you have SIM card inserted in your FiPy? I don't know if this is an issue, but all of my FiPy modem f/w updates I've done with SIM card.

              The machine is working as good as it's code.

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                ArnaudP @rskoniec
                last edited by ArnaudP

                @rskoniec We haven't received our cat-M1 SIM card yet. Do you think I can try with a regular SIM ?
                In this video tutorial : https://core-electronics.com.au/tutorials/pycom-gpy-fipy-cellular-lte-firmware-update.html
                it seems he hasn't put a sim card in it. Weird. Or the video is a bit outdated maybe.

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rskoniec @ArnaudP
                  last edited by

                  @arnaudp I've started a forum chat with you. Can we continue there?

                  The machine is working as good as it's code.

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ArnaudP @rskoniec
                    last edited by

                    @rskoniec Sure, thanks :)

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      rskoniec @ArnaudP
                      last edited by rskoniec

                      @Xykon When I was helping @ArnaudP to resolve the problem with FiPy modem f/w update (sqnsupgrade.run('/sd/CATM1-version.dup', '/sd/updater.elf')) from initial release, we went this path:

                      • upgraded FiPy from 1.10.0.b1 to the latest stable 1.18.1.r4
                      • on FiPy 1.18.1.r4 modem f/w upgrade to the newest CATM1-39529 failed
                      • on FiPy 1.18.1.r4 modem f/w upgrade to previousCATM1-38638 failed
                      • downgraded FiPy from 1.18.1.r4 to 1.18.1.r1
                      • on FiPy 1.18.1.r1 modem f/w upgrade to CATM1-38638 successful
                      • now I'm waiting for @ArnaudP feedback about modem f/w upgrade to CATM1-39529 on FiPy 1.18.1.r4
                      • @ArnaudP has confirmed that after previous step, modem f/w upgrade to CATM1-39529 on FiPy 1.18.1.r4 was successful

                      What I've noticed is that updater.elf file in the previous CAT-M1/NB1 releases is the same and with a size of aprox. 300KB, but for the latest they are different for CAT-M1 (420KB) and NB1 (364KB). I've been told by @ArnaudP that he had already sent you a message.

                      The machine is working as good as it's code.

                      John BairdJ 1 Reply Last reply Reply Quote 2
                      • T Offline
                        tom.beckingham
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          DDA
                          last edited by DDA

                          I am on the same page with version r4:

                          >>> import os
                          >>> from machine import SD
                          >>> sd=SD()
                          >>> os.mount(sd,'/sd')
                          >>> os.listdir('/sd')
                          ['upgdiff_38638-to-39529.dup', 'CATM1-39529.dup', 'upgdiff_33080-to-39529.dup', 'updater.elf']
                          >>> import sqnsupgrade
                          >>> sqnsupgrade.run('/sd/CATM1-39529.dup', '/sd/updater.elf')
                          <<< Welcome to the SQN3330 firmware updater [1.2.0] >>>
                          >>> FiPy with firmware version 1.18.1.r4
                          Attempting AT wakeup...
                          Session opened: version 1, max transfer 8192 bytes
                          Sending 55498 bytes: [########################################] 100%
                          Received ERROR from AT+SMSWBOOT=0,1! Aborting!
                          Unable to upgrade bootrom.
                          Unable to load updater from /sd/updater.elf
                          

                          Please advise on how I may be able to downgrade to 1.18.1.r1, so I may be successful....per post below.

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            rskoniec @DDA
                            last edited by rskoniec

                            @dda Download 1.18.1.r1 from here https://software.pycom.io/downloads/FiPy-1.18.1.r1.tar.gz and downgrade using Pycom Firmware Upate tool with flash from local file option.

                            The machine is working as good as it's code.

                            1 Reply Last reply Reply Quote 0
                            • O Offline
                              oyarzo-pablo @ArnaudP
                              last edited by

                              @arnaudp I've been attempting to update the modem from UART no SD card. Haven't been able to do it.

                              1 Reply Last reply Reply Quote 0
                              • John BairdJ Offline
                                John Baird @rskoniec
                                last edited by

                                @rskoniec Thanks for these detailed instructions. I've followed them and no longer get the Aborting error, however the process seems to fail:

                                >>> sqnsupgrade.run('/sd/CATM1-38638.dup','/sd/updater.elf')
                                <<< Welcome to the SQN3330 firmware updater >>>
                                Attempting AT wakeup...
                                Starting STP (DO NOT DISCONNECT POWER!!!)
                                Session opened: version 1, max transfer 8192 bytes
                                Sending 54854 bytes: [########################################] 100%
                                Bootrom updated successfully, switching to upgrade mode
                                Attempting AT auto-negotiation...
                                ERROR sending AT command... no response? b''
                                AT auto-negotiation failed! Exiting.
                                Unable to load updater from /sd/updater.elf
                                

                                Any suggestions?

                                Thanks!

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rskoniec @John Baird
                                  last edited by

                                  @john-baird Can you try this? https://forum.pycom.io/topic/4022/unable-to-update-gpy-modem-firmware/4

                                  The machine is working as good as it's code.

                                  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