I'm adding FreeRTOS to my device, but I'm stuck on task priorities.
So guys I'm adding FreeRTOS to my device, but I'm stuck on task priorities. Even though I've checked everything I could check, higher-priority tasks aren't interrupting lower ones , preempting as it's called. Any ideas on what might be causing this?
Solution:Jump to solution
Sounds like you might be dealing with a priority inversion, which can happen when the lower priority tasks continues because of a mutex or semaphore
5 Replies
Solution
Sounds like you might be dealing with a priority inversion, which can happen when the lower priority tasks continues because of a mutex or semaphore
Check out Shawn's blog on Digi-Key: https://www.digikey.com/en/maker/projects/introduction-to-rtos-solution-to-part-11-priority-inversion/abf4b8f7cd4a4c70bece35678d178321
DigiKey
Introduction to RTOS - Solution to Part 11 (Priority Inversion)
Priority inversion occurs when a high priority task yields to a low priority task because the low priority task holds a lock, such as a mutex or semaphore, needed by the high priority task.


thanks a lot