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

    SiPy reboots during boot process - no control

    Scheduled Pinned Locked Moved Issues & Bugs
    sipyfirmwarereboot
    9 Posts 4 Posters 2.3k 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.
    • V Offline
      Vercellotti
      last edited by

      Your assistance please, team.

      In trying to set up my WLAN, I did something I cannot fathom and have now locked myself out of my Sipy. The unit starts booting and then does a dump (see below). No amount of hard reset gets me back to a workable unit - 3v3 to P12 does not help.

      Right now I can find no intervention that will get me to a point where I have control. It starts the boot and then goes straight to the dump and reboots.

      Please advise how I can do a VERY HARD factory reset back to the starting point.

      ![0_1492554031221_Capture.JPG](Uploading 100%)

      Thanks
      Greg

      L robert-hhR 2 Replies Last reply Reply Quote 0
      • L Offline
        livius @Vercellotti
        last edited by livius

        @Vercellotti

        Please advise how I can do a VERY HARD factory reset back to the starting point.

        Reflash with firmware updater tool

        can you post textual view of core dump?

        think about people first, then computers

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

          I blocked my lopy, when I wanted to write on SD card while I was already using one of the SD pins for a UART link. As soon as the Lopy restarts it restarts again in the second and again and again ...

          To correct this I use the safeboot mode:
          Https://docs.pycom.io/lopy/lopy/general.html

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @bessonf
            last edited by

            @bessonf

            amount of hard reset gets me back to a workable unit - 3v3 to P12 does not help.

            as you can see he tried this without success

            think about people first, then computers

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

              @Vercellotti If the problem ist the code either in boot.py or main.py and whatever you call in there, then reflashing the firmware alone will not help, because that leavse the file system untouched. You have to erase flash first. That can be done with esptool.py, which is embedded in the pyupdate package, or here: https://github.com/espressif/esptool/tree/907273664ada32fc33f3fbfeba99550512c67e4d
              issue python esptool.py --help
              for the list of command options.

              L 1 Reply Last reply Reply Quote 1
              • L Offline
                livius @robert-hh
                last edited by livius

                @robert-hh said in SiPy reboots during boot process - no control:
                you have right, only format command erase it or reflash partition

                and because of that i always in development stage do simple trick like
                boot.py

                if pin()==1:
                  execfile('myboot.py')
                

                and same in main.py

                if pin()==1:
                  execfile('mymain.py')
                

                and i set pin to low when i have problem and then it does not execute my files

                think about people first, then computers

                1 Reply Last reply Reply Quote 0
                • V Offline
                  Vercellotti
                  last edited by

                  Thank you for all your help. It certainly gave me some guidance on the problem, and some new ideas. @Livias, great idea and I will implement such.

                  The solution was to reflash the unit (I found the Pycom Firmware Updater) which worked well. I then manually ran the Wifi setup script and got back control over wifi.

                  The problem still exists if I put the same script in the boot.py file. It would seem that the bootloader is not completed before boot.py is run, and so my wifi set up script is running while still booting (is this possible?). I will introduce a time sleep and see if this makes a difference.

                  Questions : Does the wifi connection need to be set up through the boot.py, or can you flash it more permanently to the unit?

                  Thanks again and I look forward to further feedback.

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

                    @Vercellotti WiFi set-up is usually done in main.py or a script, called by main.py. boot.py is mostly used to set UART and eventually set another script executed instead of main.py.
                    Besides that, they should behave identical. If they fail in a hard manner, the device will reboot.

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      Vercellotti @robert-hh
                      last edited by

                      @robert-hh Thank you. I will work on that advice.

                      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