Because I don't know details about Cortex-R5 core integration I would like to ask if does exist any way how to count clock cycles continuously.
We are using PMU unit and cycle counter PMCCNTR to measure program execution time in high precision. SW can store timestamps based on PMCCNTR with event information. And we can see in diagnostic how to SW passes over check points with high precision.
But there is problem. It works perfectly on Cortex-R4 based TMS570LS3137, but not on Cortex-R5 based TMS570LC4357. Reason is simple. In first case counter is still running during standby caused by WFI instruction. In second case not.
Is there some workaround to keep PMCCNTR running continuously? Or some details about integration of Cortex-R5 into TMS570LC4357?
Thanks, Jiri
PS: I read ARM documentation ARM DDI 0460D and ARM DDI 0406C.b but it does not describe why these two processors have different behavior.