-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 Crashes after every 3rd write on SD on HSPI #6372
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 just added
Errror:
ESP Exception Decoder
|
Hi @marcohald, on what version of Arduino ESP32 core are you running? Do you have 2.0.2 version or you manually set up latest master? I'm asking because @P-R-O-C-H-Y already fixed the issue but it's only avaialble now in latest master you need to checkout manually. |
Hi @VojtechBartoska I'm using the latest Master cloned via git clone https://github.com/espressif/arduino-esp32.git ./ The Arduino IDE has the version 1.8.19 |
Hi @marcohald. |
Hi @P-R-O-C-H-Y , I tried to switch to version 2.0.0 HEAD ist jetzt bei 44c1198 Added UM FeatherS2 Neo to boards.txt and added appropriate variants. (#5615) run
But now I get this Errors
ESP Exception Decoder
|
Thank you @marcohald. Please place So your sketch will be this:
For me this solved your problem, let me know if that worked for you. Tested on master branch. |
worked fine thank you |
I was facing this issue, I Completely missed this line it was causing all the issues. THANK YOU! |
could someone help me here. I dont know why, but I can only read from the SD Card. When I try to append or write, I get this error Waiting for time to be set...
Waiting for time to be set...
Waiting for time to be set...
Waiting for time to be set...
Mon, Mar 11 2024 19:18:33
SD Card Type: SDHC
SD Card Size: 121942MB
Total space: 121912MB
Used space: 3MB
fetching /keys.txt
decoding secrets
...
Message arrived [esp32-totp-write-new-secret] Hello, MQTT!
Appending to file: /keys.txt
[ 35220][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 35220][E][sd_diskio.cpp:624] ff_sd_status(): Check status failed
[ 35720][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 36220][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 36720][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 37220][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[ 37220][E][vfs_api.cpp:332] VFSFileImpl(): fopen(/sd/keys.txt) failed |
Board
ESP32 DEVKITV1 ESP32-WROOM-32
Device Description
ESP32 DEVKITV1 with SDCard to microsd Adapter attached, directly without breakboard

https://www.aliexpress.com/item/32864722159.html?spm=a2g0o.9042311.0.0.27424c4dmIbcfH
Hardware Configuration
Version
latest master
IDE Name
Arduino IDE
Operating System
Ubuntu 20.04.3 LTS
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
921600
Description
Every 3rd write to SDcard fails.
I also tried using pin 12 as MISO with the same result, tried switching because of I read that https://www.esp32.com/viewtopic.php?t=19233#p71157
Maybe releate to #6189 or #6295
Sketch
Debug Message
Other Steps to Reproduce
also tried a Module like that https://eckstein-shop.de/TFMicroSDCardMemoryModulArduinoAtmegaKartenadapterCardreader
with vcc connected to 5v
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: