AnsweredAssumed Answered

SDMMC status flags

Question asked by Michael Buschmann on Jun 10, 2018

Hi,

I am using the SDMMC module of the STM32F767ZI to read data from SD cards.

In general everything seems to work but I have some problems because I am getting CRC errors when reading 512 byte data blocks from the SD card.

The whole SD card CMD and CLK communication is working perfectly and the SD card gets initialized correctly.

Now I wonder if it's the hardware or the software.

I am especially not sure if I use the status flags correctly and query them in the correct order.

I reduced the important code sections and attached them.

Maybe someone with more experience can tell me if there are some logic or timing issues especially related to the status flags.

 

Attachments

Outcomes