Hi Ben
There's probably another problem with the card: creating the file.
I always get 0 back, even when the file isn't created.
Now, on one computer the file is created, but not on the other.
So if the file is not createt the program crashes when appending to the file.
On this computer, I'm now creating a file using C code, and it works.
I haven't figured out yet why it works on one computer but not (anymore) on the other.
Why does it return 0 even if the file wasn't created? What will be returned?
What else could be the difference between two computers with the same installation FC11 and ESP_IDF?
C-Code is working, component get back OK but no file exist:
ESP32S3 SD-card init problem
-
stefan.erni
- Valued Contributor
- Posts: 1300
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 246 times
- Been thanked: 258 times
-
BenR
- Matrix Staff
- Posts: 2332
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 647 times
- Been thanked: 856 times
Re: ESP32S3 SD-card init problem
Hmm, I'm guessing the library updates and Flowcode versions are the same on both machine. Maybe something specific in the project menuconfig settings like long file/path names being enabled/disabled?
-
stefan.erni
- Valued Contributor
- Posts: 1300
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 246 times
- Been thanked: 258 times
Re: ESP32S3 SD-card init problem
Hi Ben
You're right. There's a problem in the config file.
When I set the number of simultaneous open files to 0, it works (again).
Long filenames work great until 19+3 char.
If the name is longer like 20+3 char its not working correct
You're right. There's a problem in the config file.
When I set the number of simultaneous open files to 0, it works (again).
Long filenames work great until 19+3 char.
If the name is longer like 20+3 char its not working correct