Page 1 of 1

ESP32 S3 Sd-card FAT System long filename

Posted: Mon Apr 22, 2024 12:46 pm
by stefan.erni
Hi Ben

Creating a file automatically with Flowcode is easy. Generating a file name is also easy.
But with 8.3 digits no date and time can be used as filename.

Would it be possible in the future to work with long filenames with the Flowcode component?
I have found a setting in the ESP32 S3 setup.
somehow it should work

regards

Stefan

Re: ESP32 S3 Sd-card FAT System long filename

Posted: Mon Apr 22, 2024 3:13 pm
by BenR
Hi Stefan,

That setting could work with the ESP32 specific SD mode component which uses the IDF libraries. I don't think I do anything to force it to be in the 8.3 format.

The standard SPI based SD card component will be more work to add the support for. It's something I've wanted to add for a long time but never managed to get around to.

Re: ESP32 S3 Sd-card FAT System long filename

Posted: Tue Apr 23, 2024 7:48 am
by stefan.erni
Hi Ben

This is a great advantage for my recorder.

It's working nice, Flowcode, File_ESP32_SDMode1 and longfile name.
Snag_53edc85.png
Snag_53edc85.png (5.73 KiB) Viewed 1409 times
Even if I don't know what heap or stack means. Both settings work fine
Snag_5416757.png
Snag_5416757.png (11.48 KiB) Viewed 1409 times

Re: ESP32 S3 Sd-card FAT System long filename

Posted: Tue Apr 23, 2024 9:57 am
by BenR
Excellent that's good to know thanks.

As per the Stack/Heap setting I found this info. Both are in RAM but it's probably the top vs bottom of memory. Probably stack is the better option.
The stack is generally used for storing small, short-lived variables such as local variables and function parameters, while the heap is generally used for storing larger, longer-lived objects.