2018-05-30 10:12 AM
RM0351 Rev 6 (also in Rev 5)
Describes SDMMC_STA describes bit 9 as reserved, on other parts this is STBITERR, I have a NUCLEO-L476RG (CPUID 410FC241 DEVID 415 REVID 1007) where the SDIO/SDMMC is stuck in a timeout loop, and this bit is asserted.
2018-05-31 03:20 PM
I got to the bottom of my specific issue, but this bit does fire/function, and it is described in all the stm32l4xyab.h files.
The timeout loops in the sdmmc drivers need to recognize this bit and exit immediately as it occurs at the beginning of a read transaction, before data transfer occurs, and you don't need a 30 second timeout to wait for it to get better.
My issue was a disagreement between the driver, the card, the peripheral and the wiring about who was in 4-bit mode. The function of the bit is undocumented, but consistent with other implementations.
Currently bench testing a 128GB eMMC card using a modified SDMMC driver, using DMA on a NUCLEO-L476RG - 16.6 MBps Read, 12.5 MBps Write