Both highStartCluster and startCluster1 are of type uint16_t. Therefore, the math here is wrong, and the wrong starting cluster would be generated for any file that starts at sector 0x100 or higher.
Easy enough to fix. I'll include in my PR to support larger volumes.
https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/79a6a0c4f7f526704d5b47ffd4f6020265e01444/src/usb/uf2/ghostfat.c#L253-L257
Both
highStartCluster
andstartCluster1
are of typeuint16_t
. Therefore, the math here is wrong, and the wrong starting cluster would be generated for any file that starts at sector 0x100 or higher.Easy enough to fix. I'll include in my PR to support larger volumes.