2017-04-06 06:39 PM
Everyone,
Does vTaskDelay(1000); = exactly 1 s ? 1000 ms ?
I feel more than that.
Thanks
2017-04-06 11:54 PM
Have you checked it with a logic analyser? Toggle a GPIO before and after the delay. Since the delay is most likely based on SysTick, and you are most likely using an external crystal to drive the PLL, it will be quite accurate.
2017-04-08 09:05 PM
It will delay at least 1000ms. It will be longer when there are higher priority threads or interrupts that need to be serviced.
2017-04-09 12:37 AM
But I have two tasks with the same priority, it should be exactly 1s,
doesn't it ?
2017-04-09 06:53 AM
What are you trying to do? How close to exactly 1000ms do you have to be?
2017-04-09 07:50 AM
No.
2017-04-09 09:25 AM
Consider using a TIM to create a continuous/coherent time line, the latency at any given IRQ can't be guaranteed, but over the long term it should be consistently placed.
2017-04-09 02:21 PM
vTaskDelay(1000);
will keep accumulating bias from one application to the nexthttp://www.freertos.org/vtaskdelayuntil.html