From: Ivan Grokhotkov Date: Tue, 16 May 2017 06:19:00 +0000 (+0800) Subject: sdmmc: send init sequence before CMD0 X-Git-Tag: v3.1-beta1~274^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42de5fb76d4519c7e6ccf2ea506d4fcaef9d4d5f;p=esp-idf sdmmc: send init sequence before CMD0 --- diff --git a/components/driver/sdmmc_transaction.c b/components/driver/sdmmc_transaction.c index 16a27d5a1f..31e76ac6d9 100644 --- a/components/driver/sdmmc_transaction.c +++ b/components/driver/sdmmc_transaction.c @@ -250,6 +250,9 @@ static sdmmc_hw_cmd_t make_hw_cmd(sdmmc_command_t* cmd) res.send_auto_stop = 1; res.data_expected = 1; } + if (cmd->opcode == MMC_GO_IDLE_STATE) { + res.send_init = 1; + } if (cmd->flags & SCF_RSP_PRESENT) { res.response_expect = 1; if (cmd->flags & SCF_RSP_136) {