micropython / micropython-esp32

Old port of MicroPython to the ESP32 -- new port is at https://github.com/micropython/micropython
MIT License
673 stars 217 forks source link

Triggering safe mode #97

Closed laurivosandi closed 7 years ago

laurivosandi commented 7 years ago

Hi, I've ended up with a sort of bricked ESP32, the boot.py contains code which triggers low level exception causing evental reboot. How can I trigger the safe mode described in MicroPython docs? It seems for ESP32 it hasn't been implemented?

dpgeorge commented 7 years ago

Since ESP32 is a module and not a board there is no standard "user button" that can be used to enter safe mode. They only (and easy) way out is to erase the entire flash, to remove the offending boot.py (eg "make erase").