Skip to main content
Visitor II
Oct 31, 2025 6:58 PM UTC
Question

FAT32 on SD (SPI) card Not ready or no filesystem STM32F411

I am using STM32F411CEU6 on a blackpill. I have the Adafruit microsd card SPI module and a 4gb clouddisk sd card. I have tested the connectivity, reading and writing of the module and SD card on a Arduino UNO so I know it is compatible and the module isn't broken.
Following this tutorial: https://01001000.xyz/2020-08-09-Tutorial-STM32CubeIDE-SD-card/ and other video tutorials online about the same topic, the farthest I've gotten is getting it to say FR_NO_FILESYSTEM when trying to mount the SD card. I have triple and quadruple checked the SPI connections and even switched from SPI2 to SPI1 and still nothing. I have formatted the SD card to FAT32 more times than I can count (even tried plain FAT still didn't work).

My code is practically identical to the one in the tutorial I linked except I don't have a serial debugger and have just been looking through the debugger so I removed the printfs.

I originally have my project with the VSCode extension with CMake but now I am even trying it though STM32CubeIDE and still the same output.

Are there any other tips for debugging this or has anyone experienced something similar? Thank you.

This topic has been closed for replies.

1 reply

AScha.3
Super User
Nov 1, 2025 4:48 PM UTC

On F411 and sd-card : why not use the sdio , dedicated connection to sd-card ?

If you feel a post has answered your question, please click on " Best Answer ".