Hi,
I am looking forward to connect SDCard to log data. I am looking forward for interface other than SPI.
Can we do SDIO or any other interface for the same?
Any library available for the same? I have used sdfat-beta in other application but not sure if the same is going to work with ESP32 or not.
I am using Arduino IDE.
ESP32 interface with SDCard Fastest way
-
- Posts: 3
- Joined: Mon Jun 15, 2020 11:08 am
Re: ESP32 interface with SDCard Fastest way
Well IDF:
https://docs.espressif.com/projects/esp ... slave.html
So it is possible. Not sure about Arduino.
Why - 'I am looking forward for interface other than SPI'?
Be good to understand your thinking.
I would say that you're main throughput problem will be flash erase duration. If you FATfs then that lag kills way more than potential bandwidth. If instead you can RAW well you might get >x10 on performance assuming you code to erase ahead - something FAT cannot do for you.
Its an iron triangle thing but RAW will get you much more in performance.
RAW is actually quite easy. Logging is linear and well suited to RAW
PS
FAT is not power fail safe. You can make RAW power fail safe. Hope I am not being too obvious
https://docs.espressif.com/projects/esp ... slave.html
So it is possible. Not sure about Arduino.
Why - 'I am looking forward for interface other than SPI'?
Be good to understand your thinking.
I would say that you're main throughput problem will be flash erase duration. If you FATfs then that lag kills way more than potential bandwidth. If instead you can RAW well you might get >x10 on performance assuming you code to erase ahead - something FAT cannot do for you.
Its an iron triangle thing but RAW will get you much more in performance.
RAW is actually quite easy. Logging is linear and well suited to RAW
PS
FAT is not power fail safe. You can make RAW power fail safe. Hope I am not being too obvious
& I also believe that IDF CAN should be fixed.
-
- Posts: 3
- Joined: Mon Jun 15, 2020 11:08 am
Re: ESP32 interface with SDCard Fastest way
In my case I have some data coming from outside which is not fixed in length or size.PeterR wrote: ↑Mon Jun 15, 2020 11:23 pmWell IDF:
https://docs.espressif.com/projects/esp ... slave.html
So it is possible. Not sure about Arduino.
Why - 'I am looking forward for interface other than SPI'?
Be good to understand your thinking.
I would say that you're main throughput problem will be flash erase duration. If you FATfs then that lag kills way more than potential bandwidth. If instead you can RAW well you might get >x10 on performance assuming you code to erase ahead - something FAT cannot do for you.
Its an iron triangle thing but RAW will get you much more in performance.
RAW is actually quite easy. Logging is linear and well suited to RAW
PS
FAT is not power fail safe. You can make RAW power fail safe. Hope I am not being too obvious
also SDIO looks faster then SPI interface. In past I have used SDFat-beta which was great but not sure if supported ESP32.
Who is online
Users browsing this forum: No registered users and 65 guests