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/TMS320F28020: How to turn off Smart Encoding of CCS v7?

Part Number: TMS320F28020


Tool/software: Code Composer Studio

Dear Admin, Supporter,

I have a problem at tool CCS. This is feature from this tool have Smart Encoding. It seem good when saving memory, but i want to turn off this because i want to have memory exact as code assembly which i coding. It is importance for me.

Please give me tips to turn off Smart Encoding of CCSv7.

Thank you and best regards,

Phu Nguyen 

  • I'm not sure if I understood your question correctly. When you say Smart Encoding are you referring to the default text file encoding in the editor or optimization performed by the compiler or something else?

    If it is text file encoding, that setting can be controlled from menu Window->Preferences->General->Workspace. 

    If it is compiler optimization, you can turn off optimization by going into Project properties->Build->Compiler->Optimization.

    If you are referring to something different, could you please clarify with more information? Thanks!

  • Dear supporter,

    I am sorry because my question not clearly. I will give a example:
    When i compose a code: LB 12. This instruction have opcode: (TMS320C28x CPU and Instruction Set, page 217)
    0000 0000 01CC CCCC
    CCCC CCCC CCCC CCCC

    This mean is i will receive code assembly after compile is: 0040 000C

    But, i have file hex of this instruction is: 6F0C.

    I research and know that CCS have Smart Encoding (TMS320C28x Assembly Language Tools v17.9.0.STS, page 70). And CCS automatic change from LB 12 to B 12 (B 16bitOffset,COND) to optimize code.

    My expect is when i code LB 12, i will have hex file of this instruction is: 0040 000C

    I try turn off optimization level. But i can't slove my problem. Can you help me?

    Thank you and best regards,

    Phu Nguyen
  • Thank you for the clarification. I understand the question now. I will forward this thread on to our compiler experts for them to answer if it is possible to turn this off.

  • Phu Nguyen Minh said:
    My expect is when i code LB 12, i will have hex file of this instruction is: 0040 000C

    If you want to avoid the smart encoding of this instruction write JMP 12 instead.  For details see the table in the C28x Assembly Language Tools manual titled Instructions That Avoid Smart Encoding.

    Thanks and regards,

    -George