0.9.3b2 Watchdog error after machine.idle() loop in boot.py
-
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!") -
-
I had the same issue and solved it with a
time.sleep_ms(50)in the while loop. -
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 -
I can confirm that this fix is no long necessary with pycom's watchdog fixes in 0.9.4.b1.
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