2014-05-08 09:55 PM
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-name2014-05-09 02:00 AM
Hi
Read this thread - asks the same thing : https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fProblem%20with%20file%20creating%20on%20SD%20card%20with%20FatFs%20lib&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0F...2014-05-12 07:42 AM
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.