Wipy 2.0 machine.reset() failing

  • I have a wipy 2.0 and the expansion board. I''m powering it with a 5V usb to the expansion board and nothing else connected. I'm logging in over my home router and able to access the device with no problems. My issue is that when I issue a machine.reset() command the wipy locks up and the heartbeat led turns blue and is on continuously. I can't reconnect over wifi and the only way I've found to recover is power cycle or hit the on board reset switch. I've tried reflashing the firmware and I've removed everything except an empty main.py and my boot.py file which contains the minimum code to boot the device and connect to wifi. Does anyone have any ideas as to what could be causing this?

    boot.py in case it's helpful:

    from network import WLAN
    import machine

    wlan = WLAN()

    if machine.reset_cause() != machine.SOFT_RESET:
    wlan.ifconfig(config=('', '', '', ''))

    if not wlan.isconnected():
    wlan.connect('MyWifi', auth=(WLAN.WPA2, 'MyWifiPassword'), timeout=5000)

    while not wlan.isconnected():


Pycom on Twitter