You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CFG_UF2_NUM_BLOCKS is currently set in uf2cfg.h.
Likely will hard-code file system to a large value.
Maximum value for CFG_UF2_NUM_BLOCKS: 0x101dd
If remove one `STATIC_ASSERT()`, at the risk of
compatibility issues with FAT implementations that
have off-by-one errors (of which there are many),
the maximum value could be raised to 0x101fd.
The maximum value is based on the following values:
* BPB_SECTOR_SIZE (fixed at 512 for FAT16)
* BPB_RESERVED_SECTORS (fixed at 1 for FAT16)
* BPB_NUMBER_OF_FATS (fixed at 2 for FAT16)
* BPB_ROOT_DIR_ENTRIES (fixed at 64 by GhostFAT)
* BPB_SECTORS_PER_CLUSTER (fixed at 1 by GhostFAT)
* BPB_SECTORS_PER_FAT (calculated from CFG_UF2_NUM_BLOCKS)
If any of the above change, then the maximum value
will also change.
0 commit comments