PyGamer will not accept flash_nuke.uf2

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
PrefontDon
 
Posts: 133
Joined: Sat May 25, 2013 10:45 pm

PyGamer will not accept flash_nuke.uf2

Post by PrefontDon »

I put the game.mpy file into lib and game.py into the root of PyGamer as code.py. Now I cannot add or delete files. I cannot drag flash_nuke.uf2 to the machine either. Ideas?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: PyGamer will not accept flash_nuke.uf2

Post by dastels »

The UF2 file needs to be copied to the board when it is in bootloader mode, i.e. the PYGAMERBOOT drive (mounted by double-pressing reset).

I'm curious where the game.mpy and game.py files are from. nnnn.mpy is usually just a pre-compiled version of nnnn.py and copying both to the device is unusual.

Can you get into the REPL? If so https://learn.adafruit.com/adafruit-pyg ... 2987288-32 might help.

More generally, the CircuitPython troubleshooting page might have some useful information for you: https://learn.adafruit.com/adafruit-pyg ... leshooting

Dave

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: PyGamer will not accept flash_nuke.uf2

Post by danhalbert »

The file with the exact name "flash_nuke.uf2" is usually for RP2040 boards. The PyGamer is a SAMD51 (M4) board.

User avatar
PrefontDon
 
Posts: 133
Joined: Sat May 25, 2013 10:45 pm

Re: PyGamer will not accept flash_nuke.uf2

Post by PrefontDon »

I was able to get into the REPL and follow the online instructions to nuke the FS. I'm just starting out with the PyGamer so I guess I need to do a lot more reading on it. Thank you both for your time.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”