adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.1k stars 1.22k forks source link

No reboot after "import webrepl_setup" #98

Closed fede2cr closed 7 years ago

fede2cr commented 7 years ago

Running CP version 0.8.4. While trying to configure WebREPL, the boards offers to reboot and gets halted. A workaround is pressing the hard reset button on the ESP8266.

Details: On a fresh ESP8266 huzzah feather, I import webrepl_setup, and after following the wizard, it asks me if I want to reboot the board. If I say yes, I get inside the REPL: "To enable WebREPL, you must set password for it New password: greencore Confirm password: greencore Changes will be activated after reboot Would you like to reboot now? (y/n) y state: 5 -> 0 (0) rm 0 del if0 bcn 0 del if1 usl

ets Jan 8 2013,rst cause:2, boot mode:(1,6)

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset"

The boards just stays like that with the onboard red LED ON permanently. Everything works perfect if I press the RESET button on the ESP8266.

Note: This feather actually has the modules adafruit_pca9685, adafruit_register and adafruit_bus_device, and is connected to a stacked motor featherwing.

Please let me know if I can provide any other details to replicate.

tannewt commented 7 years ago

Thanks for the in depth bug report! I'll take a look tomorrow. I was messing with it a little bit and need to see how they trigger the reset. At minimum we could just ask the user to do a hard reset like you did.

tannewt commented 7 years ago

It looks like this simply calls into the ESP SDK so theres no bug in CircuitPython. I'll add a note to the setup that suggests manually resetting if it hangs.

tannewt commented 7 years ago

Done in 44e5d360

fede2cr commented 7 years ago

Thanks for your help, good solution.

tannewt commented 7 years ago

Glad you like it! Let me know if theres anything else I can help with.