Question
Stm32f407 FatFs Long File Name
Posted on June 04, 2013 at 00:34
Hi!
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. Regards.