# Change configTICK\_RATE\_HZ in real-time

**URL:** <https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232>\
**Category:** Kernel\
**Created:** [October 31, 2016, 9:29pm UTC](https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232 "2016-10-31T21:29:15Z")\
**Posts on this page:** 4\
**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:** [October 31, 2016, 9:29pm UTC](https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232/1 "2016-10-31T21:29:15Z")

</div>

**[simointe](https://sourceforge.net/u/simointe/)** wrote on [Monday, October 31, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/6affe23d/#f83a):

(TMS570LC4)  
Is there a way to change at run-time the rtos tick ? I know of course you can change a task frequency, but I have a high frequency application which requires also to sweep a frequency. In order to have more precision between steps, without at compile time increase the configTICK\_RATE\_HZ too much.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [October 31, 2016, 10:33pm UTC](https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232/2 "2016-10-31T22:33:37Z")

</div>

**[edwards3](https://sourceforge.net/u/edwards3/)** wrote on [Monday, October 31, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/6affe23d/#f5e0):

No dynamic tick frequency changing really because blocked tasks have a stored wake time, and changing the time base will result in them waking at the wrong time, but you can do tricks like halve the tick frequency then call the RTOS increment tick function twice per tick.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 1, 2016, 3:12pm UTC](https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232/3 "2016-11-01T15:12:47Z")

</div>

**[simointe](https://sourceforge.net/u/simointe/)** wrote on [Tuesday, November 01, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/6affe23d/#c7d1):

Thanks.  
« then call the RTOS increment tick function twice per tick…»  
Do you talk about the vTaskStepTick( TickType\_t xTicksToJump ) function or another api call ?

---

<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:** [November 1, 2016, 3:21pm UTC](https://forums.freertos.org/t/change-configtick-rate-hz-in-real-time/6232/4 "2016-11-01T15:21:58Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, November 01, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/6affe23d/#c7d1/ad64):

The function that increments the tick is called xTaskIncrementTick (). The step tick function you refer to is only used in tickless idle mode.
