Question
CubeMx incorrect FatFS code generation
Posted on March 18, 2018 at 13:37
Hello,
In CubeMx, when the option USE_LFN is enabled, the code generator doesnt generate all necessary code. The missing files are supposed to be in this directory:
Middlewares\Third_Party\FatFs\src\option\
There are no unicode.c and ccXXX.c files (the last depends on the CODE_PAGE). Because of that, no unicode support functions are available:
/* Unicode support functions */
&sharpif _USE_LFN /* Unicode - OEM code conversion */WCHAR ff_convert (WCHAR chr, UINT dir); /* OEM-Unicode bidirectional conversion */WCHAR ff_wtoupper (WCHAR chr); /* Unicode upper-case conversion */&sharpif _USE_LFN == 3 /* Memory functions */void* ff_memalloc (UINT msize); /* Allocate memory block */void ff_memfree (void* mblock); /* Free memory block */&sharpendif&sharpendifI would appreciate a confirmation of this. Looking forward to your answer.
#fatfs