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

    Difference between reset and soft reboot

    Scheduled Pinned Locked Moved SiPy
    reboot
    7 Posts 5 Posters 2.9k 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.
    • P Offline
      pmulvey
      last edited by

      The SiPy freezes (REPL unresponsive) on this line after a soft reboot but works fine after a reset.
      sd = SD()

      sorenS L 2 Replies Last reply Reply Quote 0
      • sorenS Offline
        soren @pmulvey
        last edited by

        @pmulvey it is my experience, though haven't had it confirmed from anyone else, that soft reset will introduce all kinds of weird problems (compared to a hard reset) eg, for me - I get OS errors that different resources aren't available. Like ADC and Network.. I'm on a Lopy btw.

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

          @soren Soft reset clear mostly the micropython space. The underlying OS, the network stack and the hardware modules are not reset. For instance, when you have sockets open and do a soft reset, you'll get an error to use these sockets again. Definitely reliable is a hard reset by pulling the reset input low, e.g. by pushing the reset button. Close to that is using machine.reset().
          If you are tracing errors and need a clear repeatable state, starting with a hard reset is recommended.

          S 1 Reply Last reply Reply Quote 2
          • S Offline
            ssmith @robert-hh
            last edited by

            @robert-hh Is there a software way to do a hard reset? You say machine.reset() is close but we all know what close is good for.

            robert-hhR 2 Replies Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @ssmith
              last edited by

              @ssmith Unless you find something specific, machine.reset() is as good as it can get. It seems to do everything software does after hard reset.

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

                @pmulvey
                I have the same feeling as you
                i have reported issue about SD card reset few months ago
                https://github.com/pycom/pycom-micropython-sigfox/issues/18

                think about people first, then computers

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

                  @ssmith If you need a hard reset, you could connect a GPIO pin to Reset and pull that low. I have experienced the SD card issue too, which seems to require a pyhsical reset signal. But I dod not follow up that yet, whther it's a missimng software init of the SD card interface/driver, or a pysical reset signal missing.

                  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