-
Notifications
You must be signed in to change notification settings - Fork 7.6k
SD card issues with ESP32S3 in SDMMC mode #7373
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
Comments
depending on the chip/module model, pins 35 to 37 might be in use by OPI flash/psram. Any chip/module that ends on R8 will be using OPI PSRAM and have those pins reserved. |
@me-no-dev , The module |
That fix will be part of ESP32 Arduino 3.0.0: #6225 (comment) |
Could this be related to [SDMMC] ESP32-S3-N8R8 fails to start a microSD card in SDMMC_FREQ_HIGHSPEED mode (IDFGH-6901)? It looks like @igrr has a patch there, but I don't know if it's already included in Arduino-esp32 |
@timknapen Can you please fix the link to the related issue? Thanks |
I'm sorry about that I don't know how that happened. Link should work now. |
@mtk11 @timknapen I was able to test SD_MMC on ESP32-S3-EYE board, which has SD_MMC 1-bit mode only available.
When changed frequency to 20 MHz, all errors were gone. Can you try that?
|
Hi @P-R-O-C-H-Y , |
@P-R-O-C-H-Y , ESP32-S3-EYE board uses ESP32-S3-WROOM-1-N8R8 (8MB PSRAM). I had experienced issue with N8R2 (2MB PSRAM) version and I replaced the module with N8 (no PSRAM) version. After the replacement I haven’t experienced the presented issues with the default config. ESP3D 3.0 also works fine, however the file upload speed via WiFi is still slow around 110-120 kB/s. |
@timknapen @mtk11 There is an investigation by ESP-IDF team. We can just wait, once the fix is released. I will inform you about any updates about this issue. |
@P-R-O-C-H-Y thank you! looking forward to have this solved! |
@timknapen You are welcome! |
Hello, when is the 3.0.0 release expected? If it takes too long, is it possible to pre-release a small fix for SDMMC speed issues. |
Hello @HelloDB, we don't have exact date for 3.0.0 as we recently started on it. This is on hold for 3.0.0 milestone. |
Hello,is there a way to see the patch? there is some problems with sd_mmc driver, and switching to 20MHz (in 1-bit mode) does not solve them (write block error). Also on PIO it is particularly not working well. And finally i notice something concerning, allocating a large working buffer in PSRAM (64K) affects the sd_mmc driver, to the point it cannot intilize in many cases (dma errors). |
@timknapen @mtk11 Can you try to retest the issue with 40 MHz with the latest version 2.0.11 please? Thanks |
I just tested on two different PCBs with esp32-s3. 40.000 is still buggy. But I don't think I'm running latest 2.0.11...
as documented here: I get I'm confused.
|
@timknapen Thanks for trying, but it needs to be the latest version based on ESP-IDF 4.4.5. I am not familiar with PlatformIO so I'm not able to help you with updating it. @Jason2866 Can you please help how to use the latest 2.0.11 version? Thank you |
Try this
|
@P-R-O-C-H-Y Thanks for the hint! I assumed platformio would automatically be able to grab the latest version of the arduino-esp32 package from Github, but that does not seem to be the case.. @Jason2866 Thank you for the suggestion but I still get the same results with platformio: (using your suggestion or my previous settings)
This looks like it's using version 2.0.6 ( I don't know what the sha.099b432 means) When I just compile with my 'normal' settings, it uses 2.0.9!
gives this:
|
@timknapen
gives this:
It picks the correct tag (2.0.11) and commit (ae9dae4) |
Thanks @mikaeltulldahl. @timknapen can you give it another try please? |
Thank you @mikaeltulldahl !!
Looks good! Testing on my hardware right now! |
Thank you @P-R-O-C-H-Y , @mikaeltulldahl and @Jason2866 One weird thing: the read speed is barely faster than at 40Mhz compared to 20Mhz. Does anyone see this too? |
@timknapen Thank you very much for testing. So I assume we can close this issue as solved. About the speed I am not that much sure, why the speed is jus barely faster than at 20 MHz. |
Hi @timknapen , I tried in 1bit mode it worked with 40mhz config. but when use 4bit mode, it only worked with 20mhz config and 40mhz not worked. do you have same issuse? Thank You |
No I don't have any issues at the moment with 4bit mode at 40mhz. By now I've tested this with at least 3 completely different hardware designs. All work without problems. |
Board
Custom ESP32S3 board
Device Description
Custom board
Hardware Configuration
SDMMC_CMD 35
SDMMC_CLK 36
SDMMC_D0 37
SDMMC_D1 38
SDMMC_D2 39
SDMMC_D3 40
Version
v2.0.5
IDE Name
Arduino
Operating System
Windows 7
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Errors appear.ed
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: