In the function SDCard_GetFileCount() maximum return value is 110 while the manual said:
"The root directory typically contains 512 entries of 32 bytes each. When using short filenames (DOS 8.3 format ), this means a maximum of 511 files listed"
I made simply example(attached) that contain (D)ir command to test the problem. To test you must have SDCard with more than 110 files in root folder.
Thank you for this project. I have tried to get this example to work with an Adafruit shield (http://www.adafruit.com/products/1141) without success. I have reworked the example project to ensure the pinout assignments are correct. In looking at main.c, I noticed at line 38: SDCARD_Select(SDCard_DISABLE). This would seem incorrect in trying to initialize the card. However, even after changing this to SDCARD_Select(SDCard_ENABLE), I appear to fall into an endless loop. Stumped....