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.

What is the maximum length of USB Filename in M4 cortex TIVA



Hi,

What is the maximum length of USB Filename in M4 cortex?

 I had try to create Filename more than 12 digit with null character for termination but M4 is generate an error about Filename.

 

Below is example for Understanding:-

 

 Filename = xxxxxxxxxxxx.mmyy

 

 E.g. Filename = 123456789023.0114

i.e. 123456789023 = 12 digit code, .0114 = 01 is month and 14 = year

 

 

It is possible in M4 Cortex to increase Filename Length?

  • utpal kumar said:
    It is possible in M4 Cortex to increase Filename Length?

     What is an USB filename? Is the one handled by library?

     Too many details missing to be of some help.

  • Utpai Kumar, 

    What is it that causes it to fail? Is it the 12 characters to the left of the ".", or the 4 characters to the right of the "."? 

    Also, what is the error code that you are receiving? 

    -Jason

  • This is a limitation of the file system and doesn't really have anything to do with USB. The version of the FAT file system we use in the usb_dev_msc example applications (which I suspect you are using) does not have long filename support enabled by default. As a result, you are limited to old DOS-style 8.3 filenames. You can, however, recompiled the FATfs file system code to enable long filenames if you want to use these.