microsoft / uf2-samdx1

USB Mass Storage bootloader (based on UF2) for SAMD21 and SAMD51
Other
250 stars 305 forks source link

Add familyID and fix FAT16 bug #68

Closed henrygab closed 5 years ago

henrygab commented 5 years ago

Add many comments and static compile-time assertions, which do not add to code size, but document unwritten presumptions of the code.

Code changes:

  1. Set boot sector .PhysicalDriveNum to 0x80
  2. Set a valid date for file creation and update. This fixes ability to list files in DOS / CMD.
  3. Add the family ID to the generated UF2 file.
mmoskal commented 5 years ago

Looks good, thank you!