cancel
Showing results for 
Search instead for 
Did you mean: 

FATFS LONGFILE NAME SETTING

soobia
Associate II
Posted on May 09, 2014 at 06:55

PLZ HELP ME OUT HOW TO ENABLE LONG FILE NAME FORMAT WHEN

 USING FATFS LIB FOR 4 GB SD CARD

#lfn #fatfs #fatffs-long-file-name
2 REPLIES 2
Posted on May 12, 2014 at 16:42

Hi,

You have just to change the value of_USE_LFN deifine that switches the LFN feature.

#define _USE_LFN 0 /* 0 to 3 */
/* The _USE_LFN option switches the LFN feature.
/
/ 0: Disable LFN feature. _MAX_LFN has no effect.
/ 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
/ 2: Enable LFN with dynamic working buffer on the STACK.
/ 3: Enable LFN with dynamic working buffer on the HEAP.

This define is available under the FatFs configuration file: ffconf.h With regards.