This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

getting file info in keil with FATFS

Hi All,

I am writing a application for Tiva C series MCU where I need to write/read the file to/from SD card.

If I read the directory by using FATFS library by calling fread as below iFResult = f_readdir(&directory, &File_Info);

here all the file information will be stored in File_Info structure. If I see the file name member in structure it is having as "FLOWER~1.JPG" instead of "flowers_Original.jpg".

Does anyone know why it is overwriting the file name and also I need to access the file by using "FLOWER~1.JPG" name only.

Any help is appreciated.

Thanks
srini

Parents
  • hi Per Westermark,

    Thanks for the earliest reply.

    I Enabled the feature i defined _USE_LFN to 1 and also added the unicode.c to my project but I am getting the following error.

    Trial_Link_CSU.axf: error: L6047U: The size of this image (46140 bytes) exceeds the maximum allowed for this version of the linker

    thanks,
    srini

Reply
  • hi Per Westermark,

    Thanks for the earliest reply.

    I Enabled the feature i defined _USE_LFN to 1 and also added the unicode.c to my project but I am getting the following error.

    Trial_Link_CSU.axf: error: L6047U: The size of this image (46140 bytes) exceeds the maximum allowed for this version of the linker

    thanks,
    srini

Children