Part Number: AM62P
Hello,
I'm having a problem related to semaphore post/pend operations in my app running on the M4 core of AM62x platform. I have a task that blocks waiting on a SemaphoreP_pend(). The task priority is high (configMAX_PRIORITIES - 2). When the semaphore is posted, this task wakes up and does some processing that takes about 1ms, measured with xTaskGetTickCount(), then goes to wait on the semaphore again. The semaphore is posted in a function called from ISR context. The semaphore is posted every 4ms. I added some trace around the post and pend calls to confirm the timing.
Tick Event
==== ==
15948928 3 Task waiting on sem
15948964 0 ISR callback about to post the semaphore
15948964 1 ISR posted the semaphore
15948964 2 Task woke up and started processing
.......
15948971 3 Task waiting on sem
15949007 0
15949007 1
15949050 0
15949050 1
15949092 0
15949092 1
15949099 2 Task finally woke up
15949135 0
15949135 1
15949178 0
15949178 1
Thanks
-Ayman