Page 1 of 1

MMC/eMMC clarification - ESP32-C6

Posted: Fri Jul 26, 2024 11:08 pm
by seonroz
Hey Espressif Folks,

The ESP32-C6 doesn't have the MMC Host controller peripheral, but the latest IDF docs states that though currently only SD Card support is possible, eMMC is support will be added later.

But this is the exact same note for every chip including the S3 and original ESP32, which both have the MMC Host controller peripheral, and both work grea with eMMC, so support is there, and has been for ages.

So, are the docs just wrong for every chip?
Can eMMC work at a firmware level without the MMC host controller?
Will eMMC support be coming for the C6 like the docs state?

Can this be clarified here and the docs updated to reflect their correct current state for each chip in the ESP32 family please?

Thanks :)
Seon
Unexpected Maker

Re: MMC/eMMC clarification - ESP32-C6

Posted: Tue Aug 20, 2024 6:32 am
by seonroz
Is this really not going to get a response from anyone at Espressif?
The docs are outdated and/or wrong on pretty much all platforms regarding support for eMMC and I'd love some clarrification.
Thanks :)
Seon
Unexpected Maker

Re: MMC/eMMC clarification - ESP32-C6

Posted: Thu Aug 22, 2024 2:12 pm
by ESP_igrr
Hi Seon,

The note in sdmmc_card_init about eMMC not being supported is indeed outdated. Will remove it!


You are right that ESP32-C6 doesn't have SDMMC Host controller. You can call sdmmc_card_init on ESP32-C6, provided that you use SDSPI host. That is, you write:

Code: Select all

sdmmc_host_t host = SDSPI_HOST_DEFAULT();
...
err = sdmmc_card_init(&host, &card);
sdmmc_card_init is a higher level function which can work both with SDSPI and SDMMC hosts.

You can use even higher level functions such as esp_vfs_fat_sdspi_mount — they will call sdmmc_card_init and then initialize FAT partition on the card.

However, eMMC chips don't usually support SPI protocol, so in practice ESP32-C6 can only communicate with SD cards or SD-NAND chips.

Re: MMC/eMMC clarification - ESP32-C6

Posted: Sun Aug 25, 2024 10:19 pm
by seonroz
Thanks for the reply and update.

Yeah, I was expecting the C6 etc to not be able to use the eMMC - but the docs gave me a little hope that maybe Espressif had some under the hood magic planned :)

Hopefully the docs wil be updated soon for all of the platforms to make it clear what does and does support eMMC.

Cheers :)

Seon
Unexpected Maker