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/TMDSHVRESLLCKIT: How to debug PWMDRV_LLC_ComplPairDB.asm file

Genius 5840 points

Part Number: TMDSHVRESLLCKIT

Tool/software: Code Composer Studio

Hello,

I'm evaluating example project of TMDSHVRESLLCKIT.

I think HVLLC-DPL-ISR.asm is using some function described PWMDRV_LLC_ComplPairDB.asm.

I would like to debug some functions in PWMDRV_LLC_ComplPairDB.asm..

But Step Execution in CCS does not enter PWMDRV_LLC_ComplPairDB.asm. if I added PWMDRV_LLC_ComplPairDB.asm. to project.

Could you tell me how to debug PWMDRV_LLC_ComplPairDB.asm.?

Regards,

U-SK

  • Hi U-SK,

    Are you able to stop the code in the ISR? When you try to step into the assembly macros CCS is just stepping over them to the next line? Is that correct?

    What problem are you trying to debug?

    Best,

    Clayton

  • Hi Clayton,

    Thank you for your reply.

    >Are you able to stop the code in the ISR?

    Yes.

    >When you try to step into the assembly macros CCS is just stepping over them to the next line? Is that correct?

    Your understanding is correct.

    When I step into the assembly from PWMDRV_LLC_ComplPairDB 1 on the line 186 in HVLLC-DPL-ISR.asm, then CCS  does not enter PWMDRV_LLC_ComplPairDB.asm but move to line 187.

    >What problem are you trying to debug?

    I would like to understand how PWMDRV_LLC_ComplPairDB working.

    I think debugging PWMDRV_LLC_ComplPairDB.asm is easer to understand compared to viewing disassembly window.

    Regards,

    U-SK

  • I've been able to reproduce this on my side. Unfortunately, I don't think there's any easy way to make CCS step through the PWMDRV_LLC_ComplPairDB.asm file.

    I think the following is happening:

    Line 186, "PWMDRV_LLC_ComplPairDB 1" is a macro, so the compiler copies code from the PWMDRV_LLC_ComplPairDB.asm file and inserts it where the macro appears in the HVLLC-DPL-ISR.asm file. So in a sense, the code is never stepping into the PWMDRV_LLC_ComplPairDB.asm file. That's why the code window never jumps into the PWMDRV_LLC_ComplPairDB.asm file, but you can see it stepping through the instructions in the disassembly window. (Use CTRL + SHIFT + F5 to step in the disassembly window).

    In contrast, _PWM_ISR is written as an assembly function. That's why the code window will step into the HVLLC-DPL-ISR.asm file.

    You'll either have to rewrite the macro as a function call... or you can screenshot the code and place it beside the disassembly window so that you can see the comments while you're stepping through. You should be able to step through the disassembly using the green "Assembly Step Into" arrow. (Keyboard shortcut CTRL + SHIFT + F5.

    I also encourage you to look at the documentation if you haven't already, it gives a thorough explanation of the macros. (C:\ti\c2000\controlSUITE\libs\app_libs\digital_power\f2802x_v3.5\Doc)

  • Hi Clayton Greenbaum,

    Thank you for your reply.

    I understand!

    Regards,

    U-SK