This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB Mass Storage Sample inconsistency with FAT Descr.

I feel that I have found a problem in the usb mass storage device sample for the mc2140 board.

in file diskimage.c, the array for image of disk in fat12 format at offset 17,18 (0x11,0x12) contains [0x10 0x00] which means 16 "root entry count" for the FAT12 disk.


But according to Microsoft specifications for FAT12 this value should be such a way that if multiplied by 32 should give an even multuiple of sector size

since we use sector size 512, this value should be atleast 32