If you update the Pico firmware the filesystem contents is preserved, including main.py. Sooner or later someone is going to write a main.py which crashes the board, by poking RAM locations or by abuse of the inline assembler.
Is there a way to wipe the filesystem of an unbootable board?
Factory reset?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Factory reset?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Factory reset?
I haven’t tried this yet, but there is an example program included here: https://github.com/raspberrypi/pico-examples called nuke which will erase all of flash.
Re: Factory reset?
It happened to me, that I made a main.py which freezed the board. But I wanted to keep the file system. So I created a firmware with a _boot.py, which erased main.py. After that, I could use the previous firmware.
Re: Factory reset?
This was my solution for removing main.py when it was stopping the REPL being reached, preventing rshell from accessing it, when I wanted something less than nuking everything -
https://www.raspberrypi.org/forums/view ... 6&t=305432
https://www.raspberrypi.org/forums/view ... 6&t=305432
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
-
- Posts: 1
- Joined: Wed Nov 24, 2021 10:30 pm
Re: Factory reset?
Thanks everyone. This thread has saved me from giving up after evening one of my adventures with a Plasma 2040.