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/CC2652P: How do I generate a actual size binary file?

Part Number: CC2652P
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hi TI Team,

I use the following line of instructions to generate the binary file,

${CCS_UTILS_DIR}/tiobj2bin/tiobj2bin ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin ${CG_TOOL_ROOT}/bin/armofd ${CG_TOOL_ROOT}/bin/armhex ${CCS_UTILS_DIR}/tiobj2bin/mkhex4bin

However, the generated file size is fixed. For example, the flash size is set to 64KB and the generated file size is always 64KB.But the actual size of the firmware may be 32KB. How to generate the actual file size instead of the fixed file size?

Thinks!

  • Hi,

    I assume that this CCSTUDIO tool includes padding for word alignment of the resulting image, although there isn't an option to exclude padding you may be able to modify the bin file after it is generated.  However I will allow the CCS experts to provide further comments.

    Regards,
    Ryan

  • user5139876 said:
    the generated file size is fixed

    It may seem that way, but it isn't.  The size of the file depends on the amount of initialized memory used by the input executable file given by the parameter ${BuildArtifactFileName}.  As that changes, the size of the file changes.

    Please experiment, and let me know what you see.

    Thanks and regards,

    -George