Hello,
In the default configuration, KSDK 1.3 USB Host MSD FATfs library allows me to create files in the format 8:3. In other words, the file name must have up to 8 characters for the name itself and 3 for the extension.
I need 16 characters for the file name and 3 for the extension. Is that possible? Which settings should I do?
IDE: KDS 3.0
MCU: MK22FN512VLH12
Thanks and best regards,
Marco Coelho
Hi Marco,
Please follow the following steps to add long file name support:
1.#define _USE_LFN 3 in ffconf.h
2.#define _CODE_PAGE 437 in ffconf.h
I have tested based on host_msd_fatfs demo on frdm-k64f, it runs well. Please refer to the following snapshots for more details.
Hope that helps,
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------