mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
516a4ba28d
ACMD41 argument is different between SD mode and SPI mode. In SPI mode, the only non-zero bit may be the HCS bit. Unlike the SD mode, the bits reflecting the host's OCR should be zero. Previously, we used to set these bits the same way as for the SD mode. This has caused certain cards to fail initializing, apparently their controllers have checked the ACMD41 argument more strictly and refused to finish initialization, resulting in an error such as sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107 (Note that this error may have other causes than the one fixed in this commit. For example, if the card doesn't have a sufficient and stable power supply, it may also fail to complete the internal initialization process, and will never clear the busy flag in R1 response.) Closes https://github.com/espressif/esp-idf/issues/6686 Closes https://github.com/espressif/esp-idf/issues/10542 |
||
---|---|---|
.. | ||
include | ||
test | ||
test_apps | ||
CMakeLists.txt | ||
sdmmc_cmd.c | ||
sdmmc_common.c | ||
sdmmc_common.h | ||
sdmmc_init.c | ||
sdmmc_io.c | ||
sdmmc_mmc.c | ||
sdmmc_sd.c |