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.

LAUNCHXL-F280049C: ERAD value and Count Event Value disparity

Part Number: LAUNCHXL-F280049C

Hi,

I have generated code from this Simulink model (https://www.mathworks.com/help/ti-c2000/ug/real-time-profiling.html), and I am including erad.h in CCS in order to profile 4 functions. In one particular function, the ERAD counter reads 3 cycles, as can be seen in the following image:

On placing breakpoints within the function and checking the Count Event breakpoint, the count comes out to be 74 cycles:

On introducing a delay using Sysctl_delay, a similar disparity in reading can be seen. On increasing the delay, the Count Event value does not change.

The initialization for ERAD is as follows:

We considered the possibility of there being an address mismatch, but the addresses are also in order:

This disparity can be seen only in the case of this function, for all the other functions the ERAD profile count is in the same range. It would be really helpful if someone could provide more insights on this.

Thanks in Advance

Ganesh