Skip to content

Machine.reset() bricks board. #9270

Answered by jimmo
zax71 asked this question in Using MicroPython
Sep 10, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Rather than implementing web servers from scratch, I wish more tutorials recommended using a proper web server. e.g. microdot https://github.com/miguelgrinberg/microdot

In general, it is almost impossible to truly "brick" a device. To recover your device it is not sufficient to just re-flash MicroPython because you also need to erase the filesystem. Using the erase_flash option to esptool before re-flashing the firmware to your esp8266 will solve this.

(On STM32/pyboard we have a way to trigger a filesystem reset without re-flashing, it would be good to add that to the other ports, especially rp2).

I'm not sure why your program is causing this to happen though. In general what @davefes su…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zax71
Comment options

@robert-hh
Comment options

Answer selected by zax71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment