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