FreeRTOS not taking VTaskDelay time to calculate next xExpectedIdleTime

Hi All,
One of my task have VTaskDelay(10000). So, This Task should run every 10 sec once. And I was enabled idleTask also to do power save.
My Expectation is Whenever The FreeRTOS calling the idle task , It should pass less the 10000 xExpectedIdleTime. But FreeRTOS passing higher value(0xFFF…) to idle task as xExpectedIdleTime.

Instead of do the function in Task, suppose if i create timer for 10000 todo the task. freeRTOS passing less than 10000 as xExpectedIdleTime whenever its calling the idle Task.

I dont know why its not passing valid expected idle time when i am using vTaskDelay in a task. If any have any idea about it, Please tell me.

Thanks and Regards,

I assume you are using tickelss Idle. This is the function which calculates xExpectedIdleTime: FreeRTOS-Kernel/tasks.c at main · FreeRTOS/FreeRTOS-Kernel · GitHub. Can you step through this can see why are you getting max value?

What is the value of configTICK_RATE_HZ? Also, you should use vTaskDelay(pdMS_TO_TICKS(10000)) instead.