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.

CCS/TMS320F28027: Embed BLOB into firmware

Part Number: TMS320F28027

Tool/software: Code Composer Studio

I'm currently trying to include a BLOB into the firmware binary, so only a single file needs to be flashed to the microcontroller during production. For ARM based devices this can be achived by converting the BLOB to an object file and then simply link this to the final binary. Is there similiar approach for tms320f280x devices?

Any help is appreciated,

Thomas

  • Thomas,

    I will discuss with our team and get back to you in a day or two.

    Thanks and regards,

    Vamsi

  • Unfortunately, we have no established method for converting a binary file into a C28x object file.  Here is a rough sketch of one method to consider.

    Convert the binary file into a series of hexadecimal or octal values with a command similar to od.  This command is native to most Linux systems, can be found in Cygwin, and probably other similar places.   The output might look something like ...

    0000000 c2 00 17 00 d3 0c 50 5f 98 ed 00 00 d5 02 00 00
    0000020 1c 00 13 11 9d 00 08 01 22 4e bd 0a 00 00 00 00
    0000040 00 00 00 00 00 00 cd 27 08 00 7c 20 08 00 00 00
    0000060 00 00 00 00 00 00 aa 06 00 00 00 00 00 00 00 00
    0000100 00 00 2a 00 00 00 82 04 00 00 00 00 00 00 00 00
    ...

    Next, use (pick one: Perl, Python, awk, sed, etc.) to convert the hex into a C source file that contains an array of those values.  

    Add that file to your C28x program.

    Thanks and regards,

    -George