]> granicus.if.org Git - esp-idf/commit
sdmmc: improve error handling during SPI mode init
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 2 Apr 2018 10:33:01 +0000 (18:33 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 11 Apr 2018 03:11:17 +0000 (11:11 +0800)
commitc6829fa5b84bfaaeadd6a6da0af0b710a1fdf201
tree90c752d9775ebdf37a7a9362808ffde20dac81ed
parente148c2a12c0693495b0aacabe3ccb96ada04c538
sdmmc: improve error handling during SPI mode init

- In SPI mode, the card will respond to the initial SDIO reset (done
using CMD52) with “invalid command” error. Handle this correctly.

- sdmmc_card_init had a hack where GO_IDLE_STATE (CMD0) command was
sent twice. Add explanation why this is done, and don’t expect
correct response from the card on first CMD0.

- improve logs printed at debug level by adding CMD index
components/driver/sdspi_host.c
components/driver/sdspi_private.h
components/driver/sdspi_transaction.c
components/sdmmc/sdmmc_cmd.c