-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
writing to an SD card U1 - takes just block of 4 bit at 20MHz (AEGHB-56) #247
Comments
Hi @NCKGWT, it sounds like your issue is in ESP-IDF, not in esp-iot-solution. You may have better luck there. |
Environment
Development Kit: [none]
Module or chip used: [ESP32-WROOM-32]
IDF version (run
git describe --tags
to find it):// v4.2.4-182-g30af2e87f5
Build System: [CMake]
Operating System: [Windows]
Power Supply: [Battery]
SD Card (SD (UHS-1 class) Latency writings
Hi all,
I have a web server running on a custom board with ESP32 and a OV2640 camera. I can stream correctly and take snapshot but when I get, from a JS code ,an image of about 200KB via HTTP and I have to save the image in the SD card, I see it has latency. I see by de-queuing at 4 bit at time from my http handler (see below) the image correctly at about 20Mhz (host.max_freq_khz = 200000;) but if I de-queue 512 byte at time in order to increase the writing speed I have wrong and bad images ; so im forced to lower the frequency in order to use larger block . Nothing change lets say because 20Mhz at 4 bit is similar to 5MHz to 512 after some tests. I'm using AP mode to connect via HTTTP client (browser).
The customer wants to speed up the saving process. Since different handler are served by the http server and 2 task are running also in parallel , I moved the function to a super highest prioroty task (priority to 20) by coping the httpd_req_t struct into a global struct but nothing change: same behaviour. To be sure it wasnt a network TCP issue I bypassed the saving and redirected the "200KB" image to a python app on a PC by using a TCP socket : the image is great. So it seems to me SDMMC driver is not working properly maybe because i have an old version of ESP-IDF? Please consider my connection with SD is 1-line mode.
Hope in your support,
thanks a lot.
Code to reproduce this issue
The text was updated successfully, but these errors were encountered: