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/TMS320F28069: clock tool not operating correctly when the code is running on flash

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

I tried to use clock tool by "Run-Clock-Enable" to see how many clock cycles it takes to run a piece of code.

I use our example code below:

C:\ti\controlSUITE\development_kits\F28069 controlSTICK\RT-SineFIRFFT32_v1_5

This example code can be loaded to RAM or flash.

When I load to RAM, and I add breakpoint somewhere, and I click resume, the arrow icon will stop at the breakpoint and the clock will be some value.

When I load to flash, and I add breakpoint somewhere, and I click resume, the arrow icon will stop at the breakpoint and the clock will be 0(which it shouldn't). But if I click step over icon, the clock will then be some value.

Which means that clock function could not run correctly when I load code to flash and use breakpoint.

Why? How can I know the time(number of clock cycles) it takes for a piece of code to run on flash?