-
Notifications
You must be signed in to change notification settings - Fork 7.6k
SD.exists("/") works faulty #3603
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
PS, update, just checked: |
@rel1ct: what do you mean by your effing emojies? |
Your expectations really could use some work. This is a community project- nobody here works for you. If you think the behavior is wrong, work to fix it. Saying "this is broken" is lazy and boorish. |
I have no idea about driver code or technical failures, I am a simple Arduino user, a hobby programmer (like almost all common arduino users, for whom Arduino/Wiring had been developed), |
Where did you read that the libraries and functionality for ESP32 should be completely identical to Arduino Due or ESP8266? |
the way how it's currently working for an "original" Arduino is fine, and the way how it's currently working for ESP32 is faulty - that's the crucial point which I had reported above. |
What is your understanding of the "original" Arduino ? |
@dsyleixa : I will need to get my sd card rigged up so I can fix this. Expect a PR soon. |
will there be a fix of the broken SD lib functions |
will there soon be some fixes available? |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
issue is still unresolved |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
issue is still unresolved |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
issue is still unresolved |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
issue is still unresolved |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
issue is still unresolved |
Hi, made an PR to fix the problem for SD library. The SD_MMC already contains fix on master branch (updated esp-idf already merged).So now when you remove card from slot, the SD.exist will return false. |
hi, |
You can download the master branch from github and replace the library in Arduino IDE. |
ah, no, thanks, I would prefer to wait until it is available in the Arduino IDE out of the box, e.g. by updating the ESP core version |
we are already on 2.0.1, so maybe you want to check what you have installed |
in my Arduino IDE 1.8.9 I can only choose one of 1.0.0. to 1.0.6, |
There are new URLs for board manager. |
thank you, never got a notification that my old url had to be changed, now I also have 2.0.1. |
still not solved. versions 2.0.x are working faulty with SD access. |
@dsyleixa |
in the Arduino Board manager? Now which version there? |
Not yet in the Arduino Board manager. All fixes are planned for version 2.0.3 but you will have to wait for release to be able to update in Arduinos board manager. |
thank you, then I will have to wait! |
@dsyleixa You can now update from Arduino Board Manager to 2.0.3-RC1 version :) So you can give it a shot. |
thanks, but unfortunately only 2.0.1 and 2.0.2 are available! |
@dsyleixa Take a look on this page: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html You need to change to development release link in your Arduino IDE preferences. |
I do not understand, tbh: |
@dsyleixa It's because we released only Release candidate. It's not a stable release version, because of that, link needs to be changed to Development release link. |
thanks, but as already stated I will only install stable versions via the Arduino board manager and I won't change any links which perhaps may mess up everything for all my other programs and projects.. |
ok, then you need to wait for stable one. |
2.0.4 and 2.0.5 do not compile anymore at all! |
@dsyleixa can you post the output you are getting? |
as reported in the other link: After having to add
|
No issue on my side after adding btw. if possible it will be better to post compiler / output messages in English. |
my code which does not compile is this one: I already installed Arduino core via the IDE (1.0.6 vs. 2.0.5) several times |
But in the output I don't see what is exact issue. |
I also don't see any actual reason. |
edit: the following issue is caused by dedicated ESP SD libs, not by the original Arduino libs (just tested):
SD.exists("/") works faulty!
If the SD has been started correctly by SD.begin(SD_CS) and the SD should be checked if intermediately mistakenly removed, it always shows "OK" and never shows an error:
Arduino IDE 1.8.9
ESP32 board 1.0.4
default settings
PS:
the SD needs to be checked by the root path
SD.exists("/")
because the current files on the SD are unknown, So finally the root path is the only path which is existing on either formatted SD.
OTOH, SD.begin() also always returns no error if the SD is mistakenly not present any more.
Additionally, if no SD was inserted at the start (SD.begin() fails at setup() ), then a later re-inserting during runtime plus an extra SD.begin() also does not restart and reload the SD contents
The text was updated successfully, but these errors were encountered: