AnsweredAssumed Answered

Stm32f407 FatFs Long File Name

Question asked by zbik.mateusz on Jun 4, 2013
Latest reply on Jun 4, 2013 by Clive One
I'm using popular fatfs library to handle my SD card.
Now I have to use longer file name, so Ive decided to use LFN.

With standard file name this code works fine:
char lolek[]="data1234.kml";
fresult = f_mount( 0, &fatfs ); //mount sd
fresult = f_open( &plik, (const char*)lolek , FA_OPEN_ALWAYS | FA_WRITE );

But LFN works only like this:
TCHAR* lolek = _T("asdfasfdas");
fresult = f_mount( 0, &fatfs ); //mount sd
fresult = f_open( &plik, lolek , FA_OPEN_ALWAYS | FA_WRITE );

How to convert standard char* table to TCHAR* table ?
Its a real big riddle for me.