ESP32S3 SD-card init problem

Any bugs you encounter with Flowcode should be discussed here.
stefan.erni
Valued Contributor
Posts: 1299
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 246 times
Been thanked: 258 times

Re: ESP32S3 SD-card init problem

Post by stefan.erni »

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:
2026-09-25_18-18-27.PNG
2026-09-25_18-18-27.PNG (52.56 KiB) Viewed 312 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

Post by BenR »

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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

stefan.erni
Valued Contributor
Posts: 1299
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 246 times
Been thanked: 258 times

Re: ESP32S3 SD-card init problem

Post by stefan.erni »

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).

2026-10-06_10-37-44.PNG
2026-10-06_10-37-44.PNG (64.06 KiB) Viewed 61 times

Long filenames work great until 19+3 char.
If the name is longer like 20+3 char its not working correct
2026-10-06_11-25-47.PNG
2026-10-06_11-25-47.PNG (14.84 KiB) Viewed 61 times

Post Reply