How to extend file name size in KSDK 1.3 USB Host MSD-FATfs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to extend file name size in KSDK 1.3 USB Host MSD-FATfs

1,104件の閲覧回数
MAPC
Senior Contributor I

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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

914件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

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.

pastedImage_0.png

pastedImage_1.png

Hope that helps,


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

914件の閲覧回数
DavidS
NXP Employee
NXP Employee

In addition to Kan's good answer:

FatFs Module Application Note

Regards,

David

0 件の賞賛
返信