eMMC module
-
- Posts: 1
- Joined: Thu Mar 12, 2020 6:41 pm
Re: eMMC module
I know this topic has been dead for almost a year now, but im trying to figure out if the same sd -> emmc 5.x is faster than a uch class I/III sd card. After reviewing the 4.0 esp-idf the speed limitation of the smmc library is both the number of lines and frequency from the clock divider. So, my question is... How can a emmc chip write/read faster if the limitiations of the read and write speed libary do exceed 8 lines and 80k frequency? A Samsung evo sd card maximum clock speed is 100MHz.
-
- Posts: 46
- Joined: Wed Mar 13, 2019 9:20 pm
Re: eMMC module
my understanding is that there is a latency overhead with both read and write operations associated with the 'S' for secure in SD ... My speed tests support this.
Re: eMMC module
Hi techny4287,
the current limitations for SD and eMMC from the driver perspective are as follows (docs):
Default Speed (20 MHz), 4-line/1-line (with SD cards), and 8-line (with 3.3 V eMMC)
High Speed (40 MHz), 4-line/1-line (with SD cards), and 8-line (with 3.3 V eMMC)
High Speed DDR (40 MHz), 4-line (with 3.3 V eMMC)
(Note that we use 20MHz/40MHz for default/high speed modes rather than 25/50 suggested by the standard, since the ESP32 doesn't have a way to generate precisely 25 and 50MHz clocks for SD peripheral, source frequency being 160MHz).
So the highest theoretical throughput with and SD card is 40MHz * 4 bit = 20 MBps. Due to some software overhead, you will typically get up to around 16-17MBps read throughput with large buffers (64kB) and fast SD cards.
With eMMC, the highest theoretical throughput is 40 MHz * 8 lines (or 40 MHz * 4 lines * 2 (DDR)) = 40MBps. Practical speeds (again, with large 64kB buffers) are around 23-24MBps at the default optimization level.
the current limitations for SD and eMMC from the driver perspective are as follows (docs):
Default Speed (20 MHz), 4-line/1-line (with SD cards), and 8-line (with 3.3 V eMMC)
High Speed (40 MHz), 4-line/1-line (with SD cards), and 8-line (with 3.3 V eMMC)
High Speed DDR (40 MHz), 4-line (with 3.3 V eMMC)
(Note that we use 20MHz/40MHz for default/high speed modes rather than 25/50 suggested by the standard, since the ESP32 doesn't have a way to generate precisely 25 and 50MHz clocks for SD peripheral, source frequency being 160MHz).
So the highest theoretical throughput with and SD card is 40MHz * 4 bit = 20 MBps. Due to some software overhead, you will typically get up to around 16-17MBps read throughput with large buffers (64kB) and fast SD cards.
With eMMC, the highest theoretical throughput is 40 MHz * 8 lines (or 40 MHz * 4 lines * 2 (DDR)) = 40MBps. Practical speeds (again, with large 64kB buffers) are around 23-24MBps at the default optimization level.
-
- Posts: 21
- Joined: Wed Mar 04, 2020 7:14 pm
Re: eMMC module
did you solve this ?
emmc only works in Emmc Mode.
SDcard works in SPI mode and emmc mode.
emmc only works in Emmc Mode.
SDcard works in SPI mode and emmc mode.
-
- Posts: 46
- Joined: Wed Mar 13, 2019 9:20 pm
Re: eMMC module
For anyone following this thread, I released my eMMC empowered Audio Board on Kickstarter!
Help a guy out if you like!
https://www.kickstarter.com/projects/wv ... dded-audio
Help a guy out if you like!
https://www.kickstarter.com/projects/wv ... dded-audio
Who is online
Users browsing this forum: No registered users and 94 guests