This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bugfix: Profiler not working in AM335X Starter Kit BSP

Just to share this bugfix in case others run into the same problem.

I wanted to use the CE 7.0 profiler with the Starter Kit BSP, but got an error message saying that no hits were recorded and to ensure profiling support was enabled in the BSP. This was unexpected since profiling support appeared to be implemented.

The issue is in the file:
C:\WINCE700\PLATFORM\COMMON\SRC\SOC\COMMON_TI_V1\COMMON_TI_AMXX\OAL\TIMER\GPTIMER\profiler.c

In the function OALProfileTimerHit change the line
    OUTREG32(&g_pHPTimerRegs->IRQENABLE_CLR, GPTIMER_TISR_MAT | GPTIMER_TISR_OVF | GPTIMER_TISR_TCAR);
to
    OUTREG32(&g_pHPTimerRegs->IRQSTATUS, GPTIMER_TISR_MAT | GPTIMER_TISR_OVF | GPTIMER_TISR_TCAR);

The intention is to clear the interrupt, not disable it, which is what the current BSP is doing.

You'll probably want to disable the OALMSG in the same function as well.