+27 (0)11 022 5323 +27 (0)72 435 0005
- -
Formatting SDHC/FAT32 SD-Cards as FAT16

The below will most likely only work for 4GB SDHC cards. For higher capacity cards, you may wish to try reducing the size of the partition on the drive to 4GB or smaller, and then formatting that partition as FAT16, using a tool like EaseUS Partition Manager.

Many microcontroller compilers still do not, or have not in the past, supported the FAT32 file system for SD-cards. MikroElektronika do have a library available for handling the FAT32 file system for SD cards (click here to go to their FAT32 Library webpage), however you may still, for whatever reason, find a requirement to work with the FAT16 file system (perhaps you have an exising project, for example, already developed to work with the FAT16 file system - and you cannot any longer source FAT16 formatted SD-cards).

The good news is that it is possible to, quite easily, format an SDHC (SD High-Capacity) card as FAT16 - using the following steps:
(Please note that this tutorial is written using Windows XP, however the procedure should be similar for other versions of Windows.)
  1. Insert the SD-card into the computer (most laptops have card-readers, or alternatively USB card readers can be purchased from most computer stores).

  2. Run "Computer Management" by clicking "Start -> Run", typing "compmgmt.msc" in the dialog box and then clicking ok.

  3. In Computer Management click on "Disk Management" (point A) and locate your SD-card. It should presently be formatted as FAT32 (point B).

  4. Right-click on the SD-card and click "Format..."

  5. In the Format dialog select "FAT" under "File system" (FAT in this case means FAT16).
    You can also tick the "Perform a quick format" checkbox (the difference between a quick format and full format is not part of this tutorial - either will work).

  6. Click OK. Some warning dialogs appear, one of which informs you that formatting a disk will erase all data on that disk. If you are sure that you have selected the correct disk, and that there is no data on that disk which you are not prepared to lose, then proceed with the format.

  7. After a little while your SD-card should be formatted, and should show up with "FAT" under file-system in Computer Management (point C).

That's it! Your SD-card is now formatted as FAT16. If you would like to format it as FAT32 again, then simply repeat the procedure selecting "FAT 32" at step 5.
Happy coding!

You may also be interested in:

Breeze Board
Breeze Boards

Breeze prototyping boards for 28-pin PIC microcontrollers feature a microSD socket, and include example programs in the mikroC, mikroBasic, mikroPascal and Amicus compilers.