You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**To erase any board if you have access to the REPL:**
25
29
26
-
#. Download the appropriate flash .erase uf2 from `the Adafruit_SPIFlash repo <https://github.com/adafruit/Adafruit_SPIFlash/tree/master/examples/flash_erase_express>`_.
27
-
#. Double-click the reset button.
28
-
#. Copy the appropriate .uf2 to the xxxBOOT drive.
29
-
#. The on-board NeoPixel will turn blue, indicating the erase has started.
30
-
#. After about 15 seconds, the NexoPixel will start flashing green. If it flashes red, the erase failed.
31
-
#. Double-click again and load the appropriate `CircuitPython .uf2 <https://github.com/adafruit/circuitpython/releases/latest>`_.
30
+
#. Connect to the CircuitPython REPL using a terminal program.
31
+
#. Type ``import storage`` into the REPL.
32
+
#. Then, type ``storage.erase_filesystem()`` into the REPL.
33
+
#. The ``CIRCUITPY`` drive will be erased and the board will restart with an empty ``CIRCUITPY`` drive.
32
34
33
-
**For boards without SPI flash, such as Feather M0 Proto, Gemma M0 and, Trinket M0:**
35
+
Erase File Method
36
+
^^^^^^^^^^^^^^^^^
37
+
**If you do not have access to the REPL, you may still have options to erase your board.**
34
38
35
-
#. Download the appropriate erase .uf2 from `the Learn repo <https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/uf2_flash_erasers>`_.
36
-
#. Double-click the reset button.
37
-
#. Copy the appropriate .uf2 to the xxxBOOT drive.
38
-
#. The boot LED will start pulsing again, and the xxxBOOT drive will appear again.
39
-
#. Load the appropriate `CircuitPython .uf2 <https://github.com/adafruit/circuitpython/releases/latest>`_.
39
+
The `Erase CIRCUITPY Without Access to the REPL <https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting#erase-circuitpy-without-access-to-the-repl-3105309-32>`_
40
+
section of the Troubleshooting page in the Welcome to CircuitPython guide covers the non-REPL
41
+
erase process for various boards. Visit the guide, find the process that applies to your board,
0 commit comments