# vTaskDelay not working when Tickless idle enabled

**URL:** <https://forums.freertos.org/t/vtaskdelay-not-working-when-tickless-idle-enabled/6557>\
**Category:** Kernel\
**Created:** [May 4, 2017, 5:37am UTC](https://forums.freertos.org/t/vtaskdelay-not-working-when-tickless-idle-enabled/6557 "2017-05-04T05:37:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 4, 2017, 5:37am UTC](https://forums.freertos.org/t/vtaskdelay-not-working-when-tickless-idle-enabled/6557/1 "2017-05-04T05:37:47Z")

</div>

**[ashishssingh](https://sourceforge.net/u/ashishssingh/)** wrote on [Thursday, May 04, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/df88ccdd/#9077):

I am running FreeRTOS on Cortex R5 with TICKLESS\_IDLE enabled.

And I have a loop like this in my code:

while (cond) {  
do\_something();  
vTaskDelay(1);  
}

Now, when vTaskDelay is called the current thread goes to sleep, and the thread wakes up and returns after vTaskDelay at variable times from 3 to 24 seconds. Not micro or milli seconds, vTaskDelay with 1 tick resumes after 3 to 24 seconds.

Any suggestions on how to go about debugging or hints will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [May 4, 2017, 2:44pm UTC](https://forums.freertos.org/t/vtaskdelay-not-working-when-tickless-idle-enabled/6557/2 "2017-05-04T14:44:08Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, May 04, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/df88ccdd/#9077/134a):

Did you get the tickless idle code from us? (by which I mean from the  
official FreeRTOS zip file download) I don’t think we provide this for  
Cortex R5 but could be wrong.
