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.

TMS570LC4357-EP: Unable to read PMU counters

Part Number: TMS570LC4357-EP
Other Parts Discussed in Thread: TMS570LC4357

Hi 

we are using TMS570lc4357 and we would like to use PMU counters for task profiling and unfortunately it always reads as zero. I have followed the below mentioned sequence, could you please guide me to resolve the issue?

UINT32 cntr;

_pmuInit_();

_pmuEnableCountersGlobal_();

_pmuResetCounters_();

_pmuStartCounters_(0U);

CallDummy();
CallDummy();

_pmuStopCounters_(0);

cntr = _pmuGetCycleCount_();