EasyManua.ls Logo

Adafruit ESP32-S3 - To erase CIRCUITPY: storage.erase_filesystem(); Erase CIRCUITPY Without Access to the REPL

Adafruit ESP32-S3
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Auto-reload is off.
Running in safe mode! Not running saved code.
CircuitPython is in safe mode because you pressed the reset button during boot.
Press again to exit safe mode.
Press any key to enter the REPL. Use CTRL-D to reload.
You can now edit the contents of the CIRCUITPY drive. Remember, your code will not
run until you press the reset button, or unplug and plug in your board, to get out of
safe mode.
At this point, you'll want to remove any user code incode.py and, if present, the boot.
py file from CIRCUITPY. Once removed, tap the reset button, or unplug and plug in
your board, to restart CircuitPython. This will restart the board and may resolve your
drive issues. If resolved, you can begin coding again as usual.
If safe mode does not resolve your issue, the board must be completely erased and
CircuitPython must be reloaded onto the board.
To erase CIRCUITPY: storage.erase_filesystem()
CircuitPython includes a built-in function to erase and reformat the filesystem. If you
have a version of CircuitPython older than 2.3.0 on your board, you can update to the
newest version() to do this.
Connect to the CircuitPython REPL()using Mu or a terminal program.
Type the following into the REPL:
>>> import storage
>>> storage.erase_filesystem()
CIRCUITPY will be erased and reformatted, and your board will restart. That's it!
Erase CIRCUITPY Without Access to the REPL
If you can't access the REPL, or you're running a version of CircuitPython previous to
2.3.0 and you don't want to upgrade, there are options available for some specific
boards.
You WILL lose everything on the board when you complete the following steps. If
possible, make a copy of your code before continuing.
1.
2.
©Adafruit Industries Page 107 of 263

Table of Contents

Related product manuals