Using SDMMC/SDIO and FATfs for reading SD Card for STM32L471VGT6
MCU: STM32L471VGT6
I am trying to get an SD Card to work for my system. I am using a custom board and I cant share any drawings. However, what I am using for the SD Card:
Sd card adapter: https://learn.adafruit.com/adafruit-microsd-spi-sdio
Sd card: SDHC 32 GIG micro sd card.
The wiring is okay, I checked so many times.
The sd card and adapter works for spi, tried it on arduino.
What I have tried in STM32CubeMX:
Enable SDMMC1 (Tried both SD 1 bit and wide 4 bit)
- Formatted it on windows to FAT32
- Interrrupt on
- DMA on
- Pullup on every pin except CK
- Put sdmmc clock to 48 MHz
- DMA template enabled on FATFS
I have tried different PCB, tried different sd adapter, tried different sd card
What My code is crashing on is the f_mount. It returns
