02 August 2016

Fix for FR_NO_FILESYSTEM error with the embedded FatFS file system

FatFs is a popular file system for embedded applications.
Occasionally though I was having trouble accessing some SD cards, a problem that's been reported here.and here.
I've looked at a working SD card and a not working one.
They were different models and size but the problem came down to the second card not having its logical partition defined as primary. Using Minitool Partition Wizard you can fix this by doing:

1. Right Click on First Partition
2. Select Set Partition as Primary
2. Click on Apply Changes

The partition goes from Logical to Primary.

FAT32 also works, I've tried up to 8GB.


  1. Hi
    I tried it, however it does not work for me.
    Can you help me to solve this?
    Here is my email: mh.hoseinzade@yahoo.com

  2. Hi,

    I've come to the conclusion FatFS doesn't handle very well the most recent SD card types. The problem was caused in the first place by a low level format I had implemented, but that would only work on older SD cards. My solution above unfortunately wasn't working under all circumstances either, so I now avoid formatting the SD using FatFS.


Note: only a member of this blog may post a comment.