-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 core 2.0.x: SD read file functions <SD.h> messed up, core 1.06 is fine though #6078
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
I can confirm this, the reason is this change: #5988 |
I checked it, this failure even goes back to 2.0.1. (edited, typo) |
Then #5988 is a new, additional issue. |
why closed? |
It was closed automatically by PR. |
@me-no-dev |
@dsyleixa Maybe one thing that is different from 1.0.6 and 2.0.x is getting file name / path. Where the program hangs up? Can you try to find that out?
|
in Arduino SD class standard conventions it is I am basically using the Arduino standard example for creating the file list, reading the entries recursively:
In the Arduino example there are only I cannot locate anything, I can just see that nothing happens first, by repeated tries the programm completely hangs up and blocks. |
It's so weird that you don't get any error messages. There is no big change between 1.0.6 and 2.0.x
Please let me know :) Thanks |
no, sorry, that is far too complicated. |
There is the sdSelectCard() stuff in 1.0.6 but the 2 lines were added later in never version. On another issues with mounting the SD card commenting (removing) the 2 lines solves the initialization problem. Actually when I run some Arduino example on ESP32 it works normal with version 2.0.2 (after applying FIX merged in master) :printing dirs and opening/writing to file. Do you have Core debug level set to at-least error or warning? The difference from Arduino example writing to file: |
Board
Adafruit ESP32 Feather
Device Description
default Adafruit ESP32 Feather
Hardware Configuration
ads1115 by i2c,
Adafruit Featherwing TFT HX3857 with TS
Version
latest master
IDE Name
Arduino IDE 1.8.9
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
e.g. I am reading a file array list from my SD, select ist by buttonpad buttons up, down, and right.
When it's a .txt file then I display the content on the screen while blocking parallel running threads:
by 1.0.6 the content is displayed and then return to the calling routine.
By 2.0.2 nothing happens first, by repeated tries the programm completely hangs up and blocks.
BTW,
there is another extra widget which displays ".bmp" picture files on the screen by Adafruit_Imagereader, which also is fine by 1..0.6 and what hangs up the same way like the .txt files by 2.0.6.
Sketch
Other Steps to Reproduce
complete program:
https://github.com/dsyleixa/Arduino/tree/master/ESP32_GBox/ESP32_Box026e
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: