-
adam.dabrowski started the topic Cycle counter not working in the forum SDK Support 3 years, 4 months ago
I am trying to measure performance of my app. Starting with a modified hello_world demo, I try to read the rdcycle counter as defined in RISC-V specification:
unsigned long read_cycles(void)
{
unsigned long cycles
asm volatile ("rdcycle %0" : "=r" (cycles));
return cycles;
}However, the value is always zero. Looking at the CSR…[Read more]