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.

CCSv5: Unable to step-in C66x scheduled assembly code...

Hello,

I am working on C6678 EVM platform using CCSv5.1

(a) I have written a scheduled assembly code (which primarily has c64x+ instructions) and has an .asm extension.

(b) I add this to my project and compile (in debug mode) and load the program successfully on the hardware board. 

(c) I am able to step in through the program until I reach the function call which is implemented in scheduled assembly. When I try to step in or setup a breakpoint in the scheduled assembly source, the program is simply stepping over of the function call. 

(d) I am able to step-in/step-out linear assembly code successfully.

Is there any assembler setting that I should enable to be able to step-in the scheduled assembly code in CCSv5.1?

Thanks in advance.

Regards, Krishna

  • Hi Krishna,

    Are you using the commands for assembly stepping (green arrow buttons)? Using the standard source stepping (yellow arrow buttons) commands will step over the assembly function.

    ki

  • Hi Ki,

    Thank you for the response. The green arrow buttons are allowing us to step in to the disassembly, but not the scheduled assembly source code. In CCSv4, we were able to step-in through the scheduled assembly source code and set breakpoints as well. How do we do this in CCSv5.1?

    Regards, Krishna

  • Krishna,

    Sorry for the delay in reponse.

    KrishnaNagarajan said:
    The green arrow buttons are allowing us to step in to the disassembly, but not the scheduled assembly source code.

    This should still work in v5. If this is still and issue, do you have a small, reproducible test case you can provide? I'd like to try this out myself.

    Thanks

    ki

  • Ki,

    Thank you for following up. This seems to be a ELF vs COFF issue. If we compile the scheduled assembly code in COFF, we are able to debug by stepping through the source code. If we compile in ELF format, then we are not able to step through the source code. I have attached a sample ccs project for you test. The issue can be replicated both on the simulator as well as the hardware. Further, we used an older cgtools to verify the behavior with ELF/COFF output. The newer versions only support ELF output.

    Thanks, Krishna

    6562.testasm_c64xp.rar

  • Hi Krishna,

    KrishnaNagarajan said:
    This seems to be a ELF vs COFF issue.

    You are correct, it is an issue with ELF debugging with CCS. The issue will be fixed in CCSv5.3, which is scheduled roughly for October. Unfortunately there is no workaround, except to use COFF.

    The tracking number for the issue is:

    SDSCM00044380

    Thanks

    ki

  • Hi Kim,

    Thank you for the confirmation. Note that on the C6678, there is no option to compile for COFF. So, currently there is no way to debug scheduled assembly code on the C66x platform until we have this fix. Do you know if this issue exists in CCSv4?

    Regards, Krishna

  • You should be able to change the output format from the build properties dialog: