ESP32 S3 Sd-card FAT System long filename

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 760
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 150 times
Been thanked: 171 times

ESP32 S3 Sd-card FAT System long filename

Post 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
Attachments
Snag_126d480.png
Snag_126d480.png (25.76 KiB) Viewed 96 times

BenR
Matrix Staff
Posts: 1746
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: ESP32 S3 Sd-card FAT System long filename

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

stefan.erni
Valued Contributor
Posts: 760
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 150 times
Been thanked: 171 times

Re: ESP32 S3 Sd-card FAT System long filename

Post 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 80 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 80 times

BenR
Matrix Staff
Posts: 1746
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: ESP32 S3 Sd-card FAT System long filename

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

Post Reply