Other Parts Discussed in Thread: C2000WARE
Hello,
I would like to ask how to measure the number of wait states in code segmetns?
Could you provide some example code?
Thanks.
J.
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.
Hello,
I would like to ask how to measure the number of wait states in code segmetns?
Could you provide some example code?
Thanks.
J.
Hi,
Do you mean measuring the only the wait cycles required for Flash accesses?
If want to measure total cycles taken between accessing Address A to Address B, that is possible using ERAD. There are few examples available in C2000ware driverlib
Regards,
Veena
Hi,
I thought that there is something which can count nop instruction in selected code segment.
Hi,
Unfortunately, we do not have a straight forward way.
In the Type 2 version of the module, available in F2838x,F28002x/3x, CPUSTAT is an input to the counter. In that case, we can use two counters. One to measure pure cycles between two points and another to measure CPUSTAT between the same two points. The difference between the two counts is the number of wait-states
Regards,
Veena