When attempting to load circuitpython onto my matrix portal M4, I accidentally deleted all the pre-installed contents of the M4. I tried resetting and installing the bootloader, then installing the latest version of circuitpython, but it doesn't appear to be successful.
Any ideas?
Matrix Portal M4
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jm2915
- Posts: 2
- Joined: Sat Mar 25, 2023 7:46 am
Matrix Portal M4
- Attachments
-
- M4.png (38.41 KiB) Viewed 52 times
- danhalbert
- Posts: 4652
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Matrix Portal M4
Hi - you copied the UF2 file to the CIRCUITPY drive. You need to copy it to the MATRIXBOOT drive. Delete it from the CIRCUITPY drive. Double-click the reset button to get the MATRIXBOOT drive. Details are here:
https://learn.adafruit.com/adafruit-mat ... cuitpython
I recommend you turn on showing filename extensions all the time in Windows: it makes things much clearer:
https://learn.adafruit.com/adafruit-mat ... cuitpython
I recommend you turn on showing filename extensions all the time in Windows: it makes things much clearer:
- jm2915
- Posts: 2
- Joined: Sat Mar 25, 2023 7:46 am
Re: Matrix Portal M4
Thanks for the message!
I deleted and then reset. Matrixboot became circuitpy, but the only item appears to be the boot_out.txt file. I've done it a handful of times, so I'm not sure what's happening with it.
I deleted and then reset. Matrixboot became circuitpy, but the only item appears to be the boot_out.txt file. I've done it a handful of times, so I'm not sure what's happening with it.
- Attachments
-
- Screenshot 2023-03-26 190908.png (37.86 KiB) Viewed 39 times
- danhalbert
- Posts: 4652
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Matrix Portal M4
That makes sense; there was only `boot_out` (not showing the `.txt`) in your first screenshot, besides the .uf2.
To get a default "Hello World" into code.py, you can do this in the Mu Serial window, typing into the REPL:
That erases and reformats CIRCUITPY, and puts in some default files, most of which are present only to prevent certain problems on macOS.
To get a default "Hello World" into code.py, you can do this in the Mu Serial window, typing into the REPL:
Code: Select all
import storage
storage.erase_filesystem()
Please be positive and constructive with your questions and comments.