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.

Compiler: How to generate desired S19 file in CCS

Tool/software: TI C/C++ Compiler

Hi expert,

My customer generate S19 firmware in CCS using our CG_TOOL_HEX tool, but we didn't know what parameters we should use to generate the desired type of S19.

On customer side, the generate S19 in below format. the byte count is 0x22 which make the end 24bit address not even.

  

They would like to create S19 like below.

I tried to get this using below instruction, but I don't know if it is right or not. Please help me.

"${CG_TOOL_HEX}.exe" -m2 --byte -memwidth 16 -romwidth 32 -order LS -exclude".trace"  -exclude".args" -exclude"passwords" -exclude"csm_rsvd" -map"${BuildArtifactFileBaseName}.mxp" "${BuildArtifactFileName}" & del ${BuildArtifactFileBaseName}.s19 & ren ${BuildArtifactFileBaseName}.m00 ${BuildArtifactFileBaseName}.s19

 Sheldon

Thanks

  • I think you are using hex2000, which is part of the C2000 toolchain.  The example you show uses Motorola-S format.  This format is documented in the C2000 assembly tools manual.  Search for the section titled Motorola Exorciser Object Format.  

    You seek to control how many bytes are placed in each line of the output.  Unfortunately, there is no mechanism which supports that.  Motorola-S format does not specify a required length for a line of output.

    Thanks and regards,

    -George