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.
Archith, try to remove #include "core_cm55.h" and if there DWT will be not found, find out another header containing that.
Likely something of that helps
#include "os_tick.h" // CMSIS OS Tick API#include "cmsis_os2.h" // CMSIS RTOS API#include "rtx_os.h" // RTX OS definitions#include "rtx_evr.h" // RTX Event Recorder definitions
#include "RTE_Components.h"#include CMSIS_device_header
I remove #include "core_cm55.h", did not get any error like DWT will be not found. But DWT->CYCCNT returns only zero. Even after including another headers. is there any other solution?
// Enable DWT cycle counter CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT->CYCCNT = 0; DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; cyccnt = DWT->CYCCNT;
I added this to my code but still its value is Zero.
Is there anything else to consider?