Skip to main content
Visitor II
October 10, 2024
Question

Supported SD Cards for FATFS Library Generated by CubeMX

  • October 10, 2024
  • 1 reply
  • 1027 views

Hello STM32 community,

I’m using FATFS, generated by CubeMX, in an STM32 project, and I would like to know which SD card types, speeds, and manufacturers are supported. Specifically, I’m interested in:

  • Which SD card types are supported: SD, SDHC, and SDXC?
  • Does the FATFS32 library natively support exFAT for SDXC cards, or does it require additional modifications?
  • Are there any sector size limitations or best practices for configuring SD cards within FATFS32?
  • What about SD card speeds (e.g., Class 10, UHS-I, UHS-II, UHS-III)—are there any recommendations for optimal performance?
  • Are there any recommended SD card manufacturers that are known to work well with FATFS32 (e.g., SanDisk, Samsung, Kingston, etc.)?

Any insights or recommendations regarding SD card types, speeds, and manufacturers for use with FATFS32 would be greatly appreciated.

Thank you!

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 10, 2024

    For large cards you want the most recent releases of FATFS 

    Cards up to 2TB should be viable. I've used 400-512GB ones. The STM32 is not particularly fast.

    Write data as large aligned blocks for optimal performance. 

    EXFAT typically has to be enabled in ffconf.h

     

    SujithAuthor
    Visitor II
    October 16, 2024

    Hi, I'm currently using a Class 4 SD card, and it's working fine. Are there any limitations associated with this class type?