Skip to main content
Visitor II
November 23, 2021
Question

Does STM32Cube provide a FAT32 / micro SD card example for micro SD cards up to 32GB connected via SPI interface?

  • November 23, 2021
  • 1 reply
  • 888 views

I'm using a STM32F103 MCU in a project with micro SD card interface. The SD card is connected via SPI. When I use the STM32 SW, I can only connect to SD cards with a maximum capacity of 2GB.

How can I support cards with up to 32GB capacity?

    This topic has been closed for replies.

    1 reply

    Graduate II
    November 23, 2021

    SDHC/SDXC have been supported for a long while, FATFS also supports FAT32 and EXFAT, although I'd recommend current middleware, and not stale one.

    The AdaFruit shield example code in the CubeF1 BSP should demonstrate SPI connectivity to cards of capacities up to 400GB or more.