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.

RTOS/TM4C1294NCPDT: USB-Stick-Update Filename

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

Hi,

I am developing USB-Stick-Update bootloader and the example code is working well.

I try to change the  USB_UPDATE_FILENAME and the length of  the base name over 8.

But it not working.

I modified the part as below

the USB_UPDATE_FILENAME "test12345BIN"  // 9.3

SimpleFsOpen() 

{

if(!strncmp(pDirEntry->pcFileName, pcName83, 12))

{

}

}

And the define tDirEntry

char    pcFileName[12];//11 ->12

I need to modify other let it work or the length of filename must be fixed 8.3?

Thanks & Regards

Arthur 

  • Hello Arthur,

    The issue is that the TivaWare provided resources for file system handling are limited to DOS 8.3 filenames. I was trying to play around with the files a bit myself to see if there was an easy solution to expanding the name size but after some failed experiments and further reading into 8.3 filenames I think the simple_fs example was put together based on the logic of a 8.3 system and therefore wouldn't be able to just support larger names with that sort of modification as the searching through file directories for specific file names is done assuming the file name would be 8 bytes long. This is also why the padding is needed for file names that are not 8 bytes long. So there would not be a way to extend the file type without re-doing the whole file system.