Part Number: AM263P4-Q1
Hi,
We are triggering an interrupt handler (RTI event) every 50 microseconds, and each execution takes 20 microseconds.
Therefore, we estimate the CPU load to be 40%.
We measured the CPU load of each task using TaskP_loadGet() and the total CPU load of the core using TaskP_loadGetTotalCpuLoad().
After a 1-second measurement period, we called TaskP_loadResetAll(). The results are shown in the table below.

The discrepancy between Result A and Result B suggests that the interrupt processing is included in the task load measurement.
However, the observed difference is approximately 11.9%, which is considerably lower than the initially estimated CPU load of 40%.
Interrupt image

Task execution image

The interrupts in the green section are included in the Core's CPU load, but aren't the interrupts in the blue section not included in the Core's CPU load?
Could you kindly explain how to obtain the CPU load for all active tasks and interrupts, as indicated by the red box in the diagram below?

