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.

TMS320F28379D: List File Line Length

Part Number: TMS320F28379D

Greetings,

I’m looking at some lst files, and noting that the .dwpsn file C:\… information is truncated at column 132. I’ve looked in the project properties Build->Advanced Options->Assembler Options, and don’t see a way to configure the maximum line length? Should I be looking somewhere else?

Thank you,

Ed

  • There are two solutions to consider.

    One is to not use the listing file.  Build with the compiler option --src_interlist.  The compiler always generates an assembly language source file.  By default, it is deleted after it is assembled to object code.  This option has two effects.  1) This file is not deleted.  It has the same name as the C source file, with the extension changed to .asm.  2) Comments are added which make the code easier to understand.  The .dwpsn directives in this file are not truncated.

    The other solution is to change the width of the listing file.  There is no command line option.  Instead, use the assembler directive .width.  To learn more about it, please search the C28x assembly tools manual for the sub-chapter titled Directives that Format the Output Listings.  In the C source file, use the asm statement to insert the directive.  The first statement in the C file should be similar to ...

    asm("\t.width 400");  /* String must begin with a space character */

    The maximum width supported in a listing file is 400 characters.  

    Thanks and regards,

    -George

  • Hi George,

    I can’t find the –src_interlist complier option. But I can see the –keep_asm switch. And the asm files are indeed left behind with the same information as the lst file.

    I also tried the asm(“\t.width 400”); statement, and that worked nicely too for the lst file.

     And thank you for steering me to the additional info.

    Ed

  • Ed Sanders said:
    I can’t find the –src_interlist complier option.

    Please see the article Finding Compiler Options in CCS.

    Thanks and regards,

    -George

  • Good info.  Thank you.  I found --src_interlist in the compiler manual, just not in CCS.  But the compiler manual says that it is equivalent to the --keep_asm option which is the option I did find in CCS.  So that looks like the right switch and produced the expected result of retaining the assembly files.

    Thanks again George,

    Ed