-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 using SD card with HSPI works at full speed under 1.0.6, fails or runs very slowly under 2.0.2 #6295
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
If I revert #5988 under Arduino-ESP32 2.0.2, the behavior is apparently back to being tolerable, even with #6162 still applied:
|
Please try master branch of Arduino-Esp32. Its already fixed. Fix will be included in release 2.0.3. Thanks |
Could you please tell me which particular commit(s) or merged pull request(s) are supposed to fix this? I explicitly remarked that I manually applied #6162 and it did not fix the bug for me. I also commented that manually reverting #5988 on top of 2.0.2 does fix the bug for me. |
Answering myself, I have just noticed #6103 , so I am going to test this and #6162 together with #5988 . |
Board
ESP32 Dev Module
Device Description
YUBOX Node
Hardware Configuration
#define SD_SCK GPIO_NUM_14
#define SD_MISO GPIO_NUM_12
#define SD_MOSI GPIO_NUM_13
#define SD_SS GPIO_NUM_15
Version
v2.0.2
IDE Name
Arduino IDE 1.8.19
Operating System
Fedora 35 x86_64
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
When using the sketch provided below using version 2.0.2 of Arduino-ESP32, the attempted I/O to the SD card is faulty or very slow, and riddled with error messages. Under 1.0.6, the same sketch runs correctly on the same board and the same SD card.
Under a different board using ESP32-S2 the issue is even worse - the card completely fails to mount. However, this report is ESP32 only because only ESP32 is testable under both 1.0.6 and 2.0.2.
The sketch initializes an SPI object in HSPI mode, with the pins shown as follows:
#define SD_SCK GPIO_NUM_14
#define SD_MISO GPIO_NUM_12
#define SD_MOSI GPIO_NUM_13
#define SD_SS GPIO_NUM_15
Other than that, and the conditional defines for ESP32-S2, the sketch is the same as the official example for testing SD card I/O in SPI mode. Under both 1.0.6 and 2.0.2 the sketch was compiled in full verbose mode.
Sketch
Debug Message
Other Steps to Reproduce
I have searched existing bug reports. I have found and applied #6162 manually on top of 2.0.2. My tests for 2.0.2 use this attempted fix, without much success. Therefore, I think the pull will not fix the issue, at least for me.
The comment at #6189 (comment) appears to be the same issue as mine, but there is no verbose information to check whether this is so.
#5900 might be relevant to this bug, but lacks much information other than an attempt to use HSPI.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: