I’m trying to calculate the number of tasks per seconds and i’m using STM32H7 with 1000HZ tick rate.
I tried to use traceTASK_SWITCHED_IN hook function beside traceTASK_INCREMENT_TICK hook function.
void PROBE_vTraceTaskSwitchIn()// is corresponding to traceTASK_SWITCHED_IN
void PROBE_vTraceTickIncrement(TickType_t ticks)// is corresponding to traceTASK_SWITCHED_IN
if((ticks % configTICK_RATE_HZ) == 0U)
u16SwitchCounterRate = u16SwitchCounter;
u16SwitchCounter = 0U;
the problem that the task context switching rate output is 2000 which it should be 1000 as a maximum.
so where is the problem.