Skip to main content
soobia
Associate II
May 9, 2014
Question

FATFS LONGFILE NAME SETTING

  • May 9, 2014
  • 2 replies
  • 869 views
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
This topic has been closed for replies.

2 replies

Montassar BEN ROMDHANE_O
Visitor II
May 12, 2014
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.