Tool/software:
Hello,
I am working on an application on AM5728, C66x DSP core. I have a task that runs on a 20us timer. This means, when the timer interrupts every 20us, the call back function posts a semaphore. The task pends on the semaphore, and all its functionality is completed within 20us.
Randomly, it is observed that the semaphore in the timer callback function is posted late - after around 27-30us instead of 20us.
As can be seen in the snapshot below, looking at the red trace, which shows the semaphore posts, in the highlighted pink box, a semaphore is posted at ~30us and the the following one correctly comes after ~10us (since the previous one was delayed by 10us). Any pointers to why the semaphore could be delayed by almost 50% of the time? There are no other high priority interrupts in the application that could block the timer call back function to be processed.
Thanks
Dimple