Hello,
Using the rti_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang project out of the box with the EVM, the LED blinks ten times, once every 1s.
If I put the breakpoints here....

Then at R5F clock frequency of 400MHz, 10s should be 4,000,000,000 clock cycles give or take.
To reduce error, I did ten trials:
3,177,097,230
3,494,932,568
3,197,364,068
3,295,250,550
3,296,489,980
3,287,200,992
3,172,247,852
3,342,880,474
3,168,000,196
3,196,881,434
The average is 3,262,834,534 which means the number of clock cycles is ~20% lower than expected. There's a few possible explanations for this:
1) The CCS Clock Cycle measurement doesn't work correctly.
2) The R5F core is stopping or sleeping for 20% of the time.
3) The R5F core clock frequency is ~362MHz not 400MHz as advertised by the GEL file.
4) Something else.
Could you help me understand the cause of the discrepancy please?
This matters because I want to measure the real time for execution in my actual project using the clock but at the moment, I can't rely on its results.
Thank you.