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/TMS320F28377S: Clock counter doesn't count

Part Number: TMS320F28377S

Tool/software: Code Composer Studio

Hello,

I am trying to do profiling on a small piece of the code running on TMS320F28377S (100-pin package) but I'm not able to do it. I have followed the wiki: https://processors.wiki.ti.com/index.php/Profiling_on_C28x_Targets

I unchecked "Halt at program termination" and "Enable CIO function use" as described in wiki. I flash the code, start debugging. Enabled the clock counter, so one of the AET resources is in use now.

I put a H/W breakpoint on a line and run the code and it stops at the breakpoint as expected. I remove the breakpoint, put a new one on a different line and run it, and the new breakpoint is hit, but the counter always remains at the same value. If I don't move the breakpoint, in other words, if I consecutively run the code when the breakpoint is at the same line, the counter works well but then I'm not able to measure the clock cycles between two lines.

The MCU is embedded into my custom board. I have tried different debuggers, one XDS100v2 and one XDS100v3 but the behavior is the same. I also tried it on the LAUNCHXL-F28377S launchpad which has a  XDS100v2 but it also shows the same behavior. I am using Code Composer Studio 9.2.0.

Here is the screen recording of the problem I'm having, thought it might be useful: https://www.youtube.com/watch?v=BMC_gAU90bA

I'm probably missing something very obvious but cannot find out. Can I get some help?

Thanks,