# Task does not get to run allthough in Ready state

**URL:** <https://forums.freertos.org/t/task-does-not-get-to-run-allthough-in-ready-state/14665>\
**Category:** Kernel\
**Created:** [March 16, 2022, 7:22am UTC](https://forums.freertos.org/t/task-does-not-get-to-run-allthough-in-ready-state/14665 "2022-03-16T07:22:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [March 16, 2022, 8:24am UTC](https://forums.freertos.org/t/task-does-not-get-to-run-allthough-in-ready-state/14665/4 "2022-03-16T08:24:26Z")

</div>

A reason can be wrong interrupt priorities for interrupts using FreeRTOS API in their corresponding ISRs resp. ISR callbacks.  
See e.g. [Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453/16) for a pretty good explanation.  
Did you define [configASSERT](https://www.freertos.org/a00110.html?_ga=2.213540052.1971135108.1609110559-800452554.1575115350#configASSERT) and also enable [stack overflow checking](https://www.freertos.org/Stacks-and-stack-overflow-checking.html)for development/debugging to catch possible fatal errors or data corruption ?

---

_[View the full topic](https://forums.freertos.org/t/task-does-not-get-to-run-allthough-in-ready-state/14665)._
