This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: Problem with the lowercase letter using sd-spi with ff.h. Microcontroller TMS320F28388D

Part Number: TMS320F28388D


Tool/software:

Good morning,
I am making a code on the TMS320F28388D using the SD-SPI to write to a microSD. For this, I am using the ff.h library. The problem I have found is that I can't name files with lowercase letters. I would like to know how to fix it. I think it has to do with the file part of ff.c when using the #define IsLower(c) macro ((c) >= 'a' && (c) <= 'z')
But when I comment the lines where I subtract the -0x20 from the char value, I see that it generates a file with the correct name and when I open it, it doesn't let me and I have to format the SD because it doesn't let me open the file. The SD formatting is FAT32. I would like to know how to solve this.

Best regards,

Pedro

  • But when I comment the lines where I subtract the -0x20 from the char value

    Could you include the relevant code here? Are you able to name files with Upper Case letters without any issues?

    Thanks. 

  • Yes, in the code of "ff.c" it appears in here:

    - Function "get_achar(const TCHAR** ptr)" (line 2789)

    - Function "static FRESULT create_name (DIR* dp, const TCHAR** path)" (line 2959 and 3031)

      

    Function "static int get_ldnumber (const TCHAR** path)" (line 3174)

    -  Function "FRESULT f_setlabel ( const TCHAR* label )" (line 5276)

    - Function "int f_printf (FIL* fp, const TCHAR* fmt)" (line 6469)

    But as I said, when I comment these lines, and I create the files, I see in my SD card that the files appears with Lower and Upper letters but when I click on them, it appears that the file hasn't been created or deleted (somethin strange because I see on the screen the file with the namefile and the extension). 

    I don't know why it is happening

  • Hi Pedro,

    sorry for bothering you, but I have a problem similar to your, so I hope you can help me. I can not send you a private message before you accept my friend request. So can you please accept my request?

    Thanks in advance.