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.

EK-TM4C1294XL: Format of binary file generated from makefsfile

Part Number: EK-TM4C1294XL

Hello,

I would like to generate files in binary format for my HTTP server from your makefsfile and I would like to save this binary file into external memory. But I don't know how to find the files in the binary file. Do you have some description for the binary format?

Thank you very much.

  • Hello Jiri,

    I would recommend reviewing Section 16 of our TivaWare Tools User Guide which can be found in the docs folder as SW-TM4C-TOOLS-UG-2.1.4.178.pdf.

    While titled "Web Filesystem Generator", it is all about makefsfile. See if that description helps fill in the information you are lacking.

  • Hello Ralph,

    thank you very much for your answer. But this document isn't helpful for me.

    I think that I have already decoded the output binary file. The binary file has this format:

    • the first four bytes are "FIMG"
    • the next four bytes are the total size of the binary file
    • then the first file begins (each file has a header with 16 bytes), the header has these items
      • 1st four bytes = offset to next file (it is offset and not absolute address), so the next file is on address "address of the header + this offset".
      • 2nd four bytes = length of the header (always 16 bytes) (= offset to the name of the file from the address where the header begins).
      • 3th four bytes = offset to the data of the file without the name of the file (the data of the file begins on address "address of the header + this offset").
      • 4th four bytes = length of the file.
      • next bytes are the file itself.

    Notice: all data is LSB.

    I hope that it is more clear for everybody who will need it.

  • Hello Jiri,

    Thank you for sharing your findings, that will certainly be useful for other community members.