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

Diff between File system and FAT file system

Hi to all, i started to work on FAT file system on SD 1GB card. LPC2388 on MCB2300 board.

Just now i have completed my binary search on File system on SD card. Simply fopen, fread, fseek,etc.

Now i have to work on SD card using FAT file system. i went through so many web pages that didnt answer my question or i was not able to understand.

how to make a File allocating table on my SD Card? Some simple example can give me a good start...

my question is Whats the difference between Normal File system (which i have done on my SD card) and FAT File system?

And I had formatted the SD card on LAPTOP with the 2 options of FAT(Default) and FAT32.
When i tried to use the card after i did format using FAT(Default) option, i was able to work with my code which i developed for SD card using normal File system.

But if format using FAT32 option, then while trying to initialize the card it says SD card un formatted.

So what its trying to say?

So by default my controller accept FAT12?

Can i use FAT32 on the same SD card for my same code in which i didnt give an option to recognize FAT32?

As i studied from the web source for FAT16, the clusters address divide my SD card in to sectors and gives back the location address to me(2^16 address)?

So on for FAT32?

So please give me some clear explanation how to start? And i gone through Wikipedia and all the sources so dont give me the link for wikipedia pls.

Parents
  • You don't want to receive Wiki links, but the question is:
    Have you _really_ read this page?
    en.wikipedia.org/.../File_Allocation_Table

    1GB and max 32kB cluster size means how many clusters?
    4096 clusters * 32kB is 128MB.

    Any PC or microcontroller can create a FAT12, FAT16 or FAT32 file system. It is just a question of if the used source code supports it, and if the connected hardware needs it.

    A camera can manage reasonably well with FAT16, since it generates few, but large, photos. This means that the waste will be small if you format the memory card with very large clusters.

    But 65536 clusters of 32kB is still a limiting factor, since that would represent a limit of 2GB.

    You might have noticed that older cameras (or MP3 players, ...) do not support FAT32 and can't be used with larger memory cards.

    Next step up is of course to consider patens and licenses. Microsoft will _probably_ only be able to sue if you implement support for long file names. The alternative is to pay licensing fees.

Reply
  • You don't want to receive Wiki links, but the question is:
    Have you _really_ read this page?
    en.wikipedia.org/.../File_Allocation_Table

    1GB and max 32kB cluster size means how many clusters?
    4096 clusters * 32kB is 128MB.

    Any PC or microcontroller can create a FAT12, FAT16 or FAT32 file system. It is just a question of if the used source code supports it, and if the connected hardware needs it.

    A camera can manage reasonably well with FAT16, since it generates few, but large, photos. This means that the waste will be small if you format the memory card with very large clusters.

    But 65536 clusters of 32kB is still a limiting factor, since that would represent a limit of 2GB.

    You might have noticed that older cameras (or MP3 players, ...) do not support FAT32 and can't be used with larger memory cards.

    Next step up is of course to consider patens and licenses. Microsoft will _probably_ only be able to sue if you implement support for long file names. The alternative is to pay licensing fees.

Children