0

Move M0 Express back to MakeCode from CircuitPython
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Move M0 Express back to MakeCode from CircuitPython

by bbutl58 on Thu Jul 05, 2018 3:43 am

I have recently used the Metro M0 Express with CircuitPython, by dragging the latest CircuitPython release file to the board, and installing Mu, and it worked fine.

I now want to use it again with MakeCode. However, no matter what I do it only shows up as CIRCUITPY and won't run uf2 files.

How can I change the board back to use it with MakeCode?

bbutl58
 
Posts: 8
Joined: Sat Jun 23, 2018 2:50 am

Re: Move M0 Express back to MakeCode from CircuitPython

by adafruit_support_mike on Fri Jul 06, 2018 1:05 am

The instructions for installing MakeCode are here:

https://learn.adafruit.com/adafruit-fea ... o-makecode

adafruit_support_mike
 
Posts: 52607
Joined: Thu Feb 11, 2010 2:51 pm

Re: Move M0 Express back to MakeCode from CircuitPython

by bbutl58 on Wed Jul 11, 2018 8:11 pm

Thanks. Those are the instructions I was trying to follow. On further trial I have discovered that pressing reset once or a quick double press goes to CIRCUITPY and a much slower double press is required to go back to METROBOOT. It is a little confusing as to how fast the double press needs to be when first tried.

bbutl58
 
Posts: 8
Joined: Sat Jun 23, 2018 2:50 am

Re: Move M0 Express back to MakeCode from CircuitPython

by adafruit_support_mike on Thu Jul 12, 2018 3:30 am

Glad to hear you worked it out. Happy hacking!

adafruit_support_mike
 
Posts: 52607
Joined: Thu Feb 11, 2010 2:51 pm

Re: Move M0 Express back to MakeCode from CircuitPython

by danhalbert on Sat Jul 14, 2018 1:55 pm

When you see METROBOOT, look inside INFO_UF2.TXT. Could you report the version number you see there?

There was a version of the UF2 bootloader that was flaky only on Metro M0, which caused double-click to be hard to do. Also note that from MakeCode, you only need a single-click.

To update the bootloader, copy this file to METROBOOT: https://github.com/adafruit/uf2-samdx1/ ... ruit.5.uf2. Wait 15 seconds or so (until the LED pattern stabilizes: I can't remember exactly the sequence). Then reload CircuitPython or a MakeCode program, and see if double-click is better-behaved.

danhalbert
 
Posts: 1082
Joined: Tue Aug 08, 2017 12:37 pm

Re: Move M0 Express back to MakeCode from CircuitPython

by bbutl58 on Sun Jul 15, 2018 5:47 am

The INFO_UF2.TXT file contains the following:

UF2 Bootloader v1.23.0 SFHR
Model: Metro M0
Board-ID: SAMD21G18A-Metro-v0

I updated the bootloader as per your instructions and now the version is:

UF2 Bootloader v2.0.0-adafruit.5 SFHWRO

After copying the circuitpython uf2 file to the M0, a single press takes me to CIRCUITPY and the double-press now works at a wide range of speeds including a fast double-press to return to METROBOOT.

Thanks for taking the time to deal with this.

bbutl58
 
Posts: 8
Joined: Sat Jun 23, 2018 2:50 am

Re: Move M0 Express back to MakeCode from CircuitPython

by danhalbert on Sun Jul 15, 2018 9:02 am

Great! glad to hear it worked. We'll put a note somewhere in the Metro M0 Guide describing the issue and how to update. [EDIT: Done]

danhalbert
 
Posts: 1082
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.