2025-10-31 11:58 AM
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.