cancel
Showing results for 
Search instead for 
Did you mean: 

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

JDe M.1
Associate

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?

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..