This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get Cycle Count in FVP Corstone SSE-300 Ethos-U55?

HI, It seems that FVP Corstone SSE-300 Ethos-U55 does no longer has the parameter "Cpu0.has_pmu" which is used to get cycle count (I Used --list-params to see all available parameter and this parameter is not there). Is there any other parameter that can be used to get cycle count? or is there another way to get cycle count? Need Help.

Parents
  • Hi Archith,

    I have been using DWT->CYCCNT to get the counter value. It is not perfect, but that is we have.

    #include "core_cm55.h"

    uint32_t start_cycles, end_cycles, elapsed_cycles;

    start_cycles = DWT->CYCCNT; // Read cycle counter before function call
    // Call your function here
    end_cycles = DWT->CYCCNT; // Read cycle counter after function call
    elapsed_cycles = end_cycles - start_cycles;

Reply
  • Hi Archith,

    I have been using DWT->CYCCNT to get the counter value. It is not perfect, but that is we have.

    #include "core_cm55.h"

    uint32_t start_cycles, end_cycles, elapsed_cycles;

    start_cycles = DWT->CYCCNT; // Read cycle counter before function call
    // Call your function here
    end_cycles = DWT->CYCCNT; // Read cycle counter after function call
    elapsed_cycles = end_cycles - start_cycles;

Children