This example demonstrates the usage of the R5 PMU Driver. The PMU supports three event counters in additional to the cycle counter. So in total we could profile a block of code / or a function for four metrics. The cycle counter is a dedicated counter, but the other three are configurable for various PMU events. In this example, we configure the counters to count these events:
| Parameter | Value | 
|---|---|
| CPU + OS | r5fss0-0 nortos | 
| r5fss0-1 nortos | |
| r5fss1-0 nortos | |
| r5fss1-1 nortos | |
| Toolchain | ti-arm-clang | 
| Boards | am243x-evm, am243x-lp | 
| Example folder | examples/drivers/pmu/pmu_multievent | 
Shown below is a sample output when the application is run, Please note that application prints in both CCS and UART console.
UART Console: