@@ -19,24 +19,36 @@ happen on Linux and Mac OSX but it's less likely.
19
19
follow one of the procedures below. It's important to note that **any files stored on the **
20
20
``CIRCUITPY `` **drive will be erased **.
21
21
22
+ REPL Erase Method
23
+ ^^^^^^^^^^^^^^^^^
24
+ **For any board if you have access to the REPL: **
25
+
26
+ #. Connect to the CircuitPython REPL using a terminal program.
27
+ #. Type ``import storage `` into the REPL.
28
+ #. Then, type ``storage.erase_filesystem() `` into the REPL.
29
+ #. The ``CIRCUITPY `` drive will be erased and the board will restart with an empty ``CIRCUITPY `` drive.
30
+
31
+ Erase File Method
32
+ ^^^^^^^^^^^^^^^^^
33
+ **If you do not have access to the REPL, you have the following options to erase your board. **
34
+
22
35
**For boards with ** ``CIRCUITPY `` **stored on a separate SPI flash chip,
23
36
such as Feather M0 Express, Metro M0 Express and Circuit Playground Express: **
24
37
25
-
26
- #. Download the appropriate flash .erase uf2 from `the Adafruit_SPIFlash repo <https://github.com/adafruit/Adafruit_SPIFlash/tree/master/examples/flash_erase_express >`_.
38
+ #. Download the appropriate flash erase .uf2 from `the Adafruit_SPIFlash repo <https://github.com/adafruit/Adafruit_SPIFlash/tree/master/examples/flash_erase_express >`_.
27
39
#. Double-click the reset button.
28
40
#. Copy the appropriate .uf2 to the xxxBOOT drive.
29
41
#. The on-board NeoPixel will turn blue, indicating the erase has started.
30
42
#. 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 >`_.
43
+ #. Double-click again and load the appropriate `CircuitPython .uf2 <https://circuitpython.org/downloads >`_.
32
44
33
45
**For boards without SPI flash, such as Feather M0 Proto, Gemma M0 and, Trinket M0: **
34
46
35
47
#. Download the appropriate erase .uf2 from `the Learn repo <https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/uf2_flash_erasers >`_.
36
48
#. Double-click the reset button.
37
49
#. Copy the appropriate .uf2 to the xxxBOOT drive.
38
50
#. 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 >`_.
51
+ #. Load the appropriate `CircuitPython .uf2 <https://circuitpython.org/downloads >`_.
40
52
41
53
ValueError: Incompatible ``.mpy `` file.
42
54
---------------------------------------
0 commit comments