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/CCSTUDIO: how to obtain a full reusable assembler output file

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

hi

i'm trying to port a ccs3 code under ccs7

after a bloody battle  i obtained a full (functional?) code but i realized i need an assembled output too

ccs3 give also an .asm file like this

; Source file generated by SRecordToSource
 .sect "SolarModule"
 .word 03bf8h ; Crc16
 .word 0f335h ; Check Code
 ; address 300004 len 4
 .word 00070h
 .word 03D5Ah
 ; address 300008 len 30
 .word 0ffffh ; filler 300006
 .word 0ffffh ; filler 300007
 .word 0761Fh
 .word 00318h
 .word 08806h
 .word 028A8h
......
used to be linked to another module for download requirements
in original projet i can find this row in .prj file
"FinalBuildCmd=hex2000 -q -m -romwidth16 -o MyModule.s MyModule.out"
but nothing producing directly asm file. how can i produce it with ccs7?
thanks and regards
  • Hi Water,

    You likely had the compiler option "-k" enabled in v3. The same option exists in v7:

    Thanks

    ki

  • thank you Ki

    unfortunately this switch produces more .asm file, each related to .c source file
    what i need is a kind of "S-record" like that one i reported before, like this

    ; Source file generated by SRecordToSource
    .sect "SolarModule"
    .word 03bf8h ; Crc16
    .word 0f335h ; Check Code
    ; address 300004 len 4
    .word 00070h
    .word 03D5Ah
    ; address 300008 len 30
    .word 0ffffh ; filler 300006
    .word 0ffffh ; filler 300007
    .word 0761Fh
    .word 00318h
    .word 08806h
    .word 028A8h
    ......

    it will be included in another executable (.out) file to be downloaded in another board

    regards
  • I reread your original post and saw:

    Walter Mei said:
    "FinalBuildCmd=hex2000 -q -m -romwidth16 -o MyModule.s MyModule.out"

    This is calling the C2000 hex utility. In v3, you were calling it as a post-build step. In v7, the utility is integrated into the project build system so you can configure it from the project properties:

    You can use the options for the utility to configure the romwidth, quiet mode, output type etc.

    Thanks

    ki

  • Walter Mei said:
    ; Source file generated by SRecordToSource

    But I am not familiar with this "SRecordToSource". Is this generated by some external utility or is this some hex utlity output?

  • hi Ki

    thanks again

    i've just enabled that flag, in fact i obtain an .hex file with S-record format

    after your suggestions and considerations, i analyzed deeply the original project and i found a call to a function that convert hex file in asm, so it's not ccs3 who produces asm file but this function

    so i apologize about this "misunderstanding" but problem little changes: how can i call this function, originally called at the end of compilation-linking, from the ccs7 environment?

    thanks and regards

  • at the end i found a "workable" way

    i used "Post Build Steps" functionality and i obtained what i need

    thanks again about your help