Good morning,
I am working on an Esp32S3.
I have defined a flash partition named Audio, where I put mp3 files automatically at compilation.
Using Virtual FileSystem, I am mounting a partition in order to access the mp3 files and I manage
to play them. Here everything is OK.
However, it seems that when the audio filename is more than 26 characters, I do not manage to open
the file anymore and I do not manage to play them...
Do you know if there is any restriction on the filename in order to work with them ?
Thank you for your help,
best regards,
Have a good day.
Thomas TRUILHE
Esp32S3 : Virtual FileSystem Max FileName
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : Virtual FileSystem Max FileName
There is a setting in menuconfig where you can adjust the filename length.
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : Virtual FileSystem Max FileName
Thank you for your answer, yes I have seen this configuration.
However, the name length in menu config is 255 caracters at the moment.
So I do not understand what happen.
Best regards,
However, the name length in menu config is 255 caracters at the moment.
So I do not understand what happen.
Best regards,
Re: Esp32S3 : Virtual FileSystem Max FileName
do you have " Long filename support " enabled ?
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : Virtual FileSystem Max FileName
I have the longfilename support in Heap (Enabled)...
Do you have any idea ?
Do you have any idea ?
Re: Esp32S3 : Virtual FileSystem Max FileName
Hi @ThomasESP32,
IDF Virtual FileSystem (VFS) has no limit on filename length, only on the FS path prefix (the part which identifies specific file-system or device with FS-like interface, eg UART. The limit is hardcoded as 15 chars, see https://docs.espressif.com/projects/esp ... html#paths).
The actual maximum of file-system path length is given by specific FS installed, for instance FatFS limits the length to 255 characters, once you enable LFN (long filenames) in the config. See https://docs.espressif.com/projects/esp ... -filenames
IDF Virtual FileSystem (VFS) has no limit on filename length, only on the FS path prefix (the part which identifies specific file-system or device with FS-like interface, eg UART. The limit is hardcoded as 15 chars, see https://docs.espressif.com/projects/esp ... html#paths).
The actual maximum of file-system path length is given by specific FS installed, for instance FatFS limits the length to 255 characters, once you enable LFN (long filenames) in the config. See https://docs.espressif.com/projects/esp ... -filenames
Who is online
Users browsing this forum: Bing [Bot], MicroController and 209 guests