You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
577: Fix SDIO hardware flow control errata r=burrbull a=chemicstry
Using SDIO above 12 MHz causes clock glitches, which result in CRC errors (at least in embassy-stm32). In this HAL, the CRC error is not caught and write silently fails without changing any bytes on SD card.
Section from `STM32F42xx and STM32F43xx Errata sheet`:
```
2.13.1 SDIO HW flow control
Description
When enabling the HW flow control by setting bit 14 of the SDIO_CLKCR register to ‘1’,
glitches can occur on the SDIOCLK output clock resulting in wrong data to be written into
the SD/MMC card or into the SDIO device. As a consequence, a CRC error will be reported
to the SD/SDIO MMC host interface (DCRCFAIL bit set to ‘1’ in SDIO_STA register).
Workaround
None.
Note: Do not use the HW flow control. Overrun errors (Rx mode) and FIFO underrun (Tx mode)
should be managed by the application software.
```
AFAIK, this affects all SDIOv1 peripherals including the F1 family, and possibly others.
I'm not sure about the CRC error not getting caught, but this PR at least fixes the chip errata.
Co-authored-by: chemicstry <[email protected]>
0 commit comments