My Circuit Playground Express shuts off when the uf2 file is pasted

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
galgalgal_31
 
Posts: 3
Joined: Tue Apr 02, 2024 6:47 am

My Circuit Playground Express shuts off when the uf2 file is pasted

Post by galgalgal_31 »

I used my CPX today and have it plugged for my computer for almost an hour with its lights red and then i plugged it out. I used another USB port and it automatically turned green. Now I downloaded the UF2 file however when i moved it to the CPLAYBOOT drive, the green lights would shut off and the drive vanishes from the computer. How can i fix this so it will receive the uf2 file which has the code in it?

User avatar
adafruit_support_carter
 
Posts: 29522
Joined: Tue Nov 29, 2016 2:45 pm

Re: My Circuit Playground Express shuts off when the uf2 file is pasted

Post by adafruit_support_carter »

The red LEDs are indicating a bad USB cable - so mark that one somehow.

The LEDs turning off and CPLAYBOOT going away is expected behavior once the UF2 copy has completed. The follow on behavior would depend on the UF2 itself. What UF2 file is being copied? Can you "share" the MakeCode project and paste link here.

User avatar
galgalgal_31
 
Posts: 3
Joined: Tue Apr 02, 2024 6:47 am

Re: My Circuit Playground Express shuts off when the uf2 file is pasted

Post by galgalgal_31 »

Does that mean that when the CPX turns off after the UF2 file is transferred in the drive, the CPX has been loaded with the code?

Here's the link of the make code: https://makecode.com/_WgrDeHKLf0RH

I am really wondering because some cpx videos says that when the CPX is loaded with a uf2 file it blinks and then turn rainbow however mine turns off and when I plug it in my laptop again, UF2 file cant be found.

User avatar
adafruit_support_carter
 
Posts: 29522
Joined: Tue Nov 29, 2016 2:45 pm

Re: My Circuit Playground Express shuts off when the uf2 file is pasted

Post by adafruit_support_carter »

It's not turning off, it's just resetting. The general process is as shown in the MakeCode dialog:
mk.png
mk.png (135.82 KiB) Viewed 57 times
So once the UF2 copy has completed, the board resets. Visibly - the green LEDs will then turn off. After that, your UF2 code is running. So the behavior of the CPX, after the green LEDs go out, will be whatever your UF2 code is. For your example, the only external indication would be servo movement, based on light level.

Are you seeing any servo movement?

User avatar
galgalgal_31
 
Posts: 3
Joined: Tue Apr 02, 2024 6:47 am

Re: My Circuit Playground Express shuts off when the uf2 file is pasted

Post by galgalgal_31 »

Can you explain what does a servo movement do?

User avatar
adafruit_support_carter
 
Posts: 29522
Joined: Tue Nov 29, 2016 2:45 pm

Re: My Circuit Playground Express shuts off when the uf2 file is pasted

Post by adafruit_support_carter »

It would move a hobby servo attached to the CPX.

Post Reply
Please be positive and constructive with your questions and comments.

Return to “MakeCode”