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

    0.9.3b2 Watchdog error after machine.idle() loop in boot.py

    Scheduled Pinned Locked Moved MicroPython
    5 Posts 4 Posters 1.6k 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.
    • C Offline
      chrol
      last edited by chrol

      Hi,

      I had a wifi setup in boot.py that worked with previous firmware but the machine.idle() loop has to be commented out or I get a watchdog error guru meditation now - which is not obvious and needs to be looked at:

      import os
      from machine import UART
      uart = UART(0, 115200)
      os.dupterm(uart)
      
      from network import WLAN
      import machine
      wlan =WLAN()
      if machine.reset_cause() != machine.SOFT_RESET:
          wlan.init(mode=WLAN.STA)
      if not wlan.isconnected():
          wlan.connect(ssid="xxxxx", auth=(WLAN.WPA2, 'yyyyy'), timeout=5000)
          while not wlan.isconnected():
              machine.idle()
      
      print("Boot complete!")
      
      1 Reply Last reply Reply Quote 1
      • X Offline
        Xykon administrators
        last edited by Xykon

        I've been having the same issue. See here for my new boot.py file.

        Christian Ehlers

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

          I had the same issue and solved it with a time.sleep_ms(50) in the while loop.

          1 Reply Last reply Reply Quote 2
          • R Offline
            rockybulwinkle
            last edited by

            I was having the same issue and had posted it on this thread: https://forum.pycom.io/topic/237/wipy-crashes-now-after-update-to-wipy_0-9-3-b2-bin/2

            However, it seems like the issue occurs some time after my machine.idle, because I see the print statement. Do you see your "Boot complete!" statement?

            Thanks,
            Chris

            1 Reply Last reply Reply Quote 0
            • R Offline
              rockybulwinkle
              last edited by

              I can confirm that this fix is no long necessary with pycom's watchdog fixes in 0.9.4.b1.

              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