SDMMC DATA_TIMEOUT occurs when bus is idle
I'm using an STM32F779 on a known working custom board connected to an EMMC chip (8 wide). I'm using the SDMMC2 peripheral with a DMA channel for Rx as well as Tx and the SDMMC interrupt enabled. My application has two modes, in the first I log data and in the presence of USB it acts as a MSD. When connected via USB the host computer reads out blocks and interprets the file system correctly. However, after some period the SDMMC2 - DATA_TIMEOUT interrupt occurs when it shouldn't and breaks the system (DMA_TX is zeroed and then eventually a hard fault occurs).
The DCTRL register does not self clear after a transaction but is cleared at the beginning of a new read or write. This implies that as long as a read/write is performed at least once before the timer expires there is no issue.
