adafruit / uf2-samdx1

MSC bootloader (based on UF2) for SAMD21
Other
210 stars 182 forks source link

Change the filesystem be changed to FAT or FAT32 ? #201

Open benjaminbradley opened 11 months ago

benjaminbradley commented 11 months ago

I'm attempting to connect the PyGamer (running the latest 3.15 bootloader) to a 9th gen iPad running iOS 16.3.1 via a Lighting to USB Camera Adapter cable. When connected in bootloader mode, the drive is recognized and I can read the files on it, however, attempting to copy a new (known good) .uf2 file (from makecode) to the PyGamer results in Error Code 100093 and the creation of a zero-byte file on the PyGamer. From this link it appears that only FAT and FAT32 are supported, however the PyGamer appears as FAT16. Is there a way to update the PyGame so it appears as one of the supported filesystems?

To isolate the issue, I have verified that the Lightning adapter works with a regular USB thumb drive, and I have verified that the pygamer bootloader works with another computer to load the same uf2 file.

dhalbert commented 11 months ago

"FAT" is a generic name. The standard choices are FAT12, FAT16, FAT32, and exFAT.

However, the kind of drive reported is probably not the problem here. The UF2 "FAT" drive is a fake drive that has minimal functionality. iOS may not like it, regardless of whether it is FAT16 or not.

I have a similar iPad adapter dongle, but it does not work. On my 6th generation iPad, it powers a CircuitPython board (PyGamer or other), but double-clicking reset does not recognize the board. I get a fast flash. on my 9th generation iPad, I get a popup on the iPad that says the board takes too much power. The expected power consumption is something that the board reports to the USB host (the iPad, in this case).

What version of the bootloader is reported in INFO_UF2.TXT

This person says they are copying UF2's successfully using a certain app: https://forum.makecode.com/t/using-an-iphone-to-program-circuit-playground-pybadge-it-can-be-done/15436

Note that they say they get an error message, but the copy works.