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

    Reset causes for machine.reset()

    Scheduled Pinned Locked Moved Issues & Bugs
    resetmachine.resetgpy
    3 Posts 2 Posters 721 Views 3 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.
    • J Offline
      Jardar
      last edited by

      I got a GPy with pysense and when i do a soft reset in code
      machine.reset()

      The documentation states that the reset cause should be:
      "Resets the device in a manner similar to pushing the external RESET button"

      However the reset cause I get is WDT_RESET (2).
      While when I do a button reset on the GPY I get PWRON_RESET (0).

      Is this a known bug?

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

        Hi @jardar
        "similar" is the key word there, actually machine.reset() is a watchdog reset you found, more like a soft reset and different in several ways from pushing the physical reset button (which drives the reset line of the ESP32)

        But I agree maybe the documentation could be more clear on that.

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jardar
          last edited by

          Thanks.

          Is there a way to distinguish a WDT reset (fault condition) vs. a intenden reset by machine.reset()?

          Best regards

          Jardar

          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