# arduino freertos configTICK\_RATE\_HZ 62

**URL:** <https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836>\
**Category:** Kernel\
**Created:** [October 24, 2017, 3:30pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836 "2017-10-24T15:30:36Z")\
**Posts on this page:** 6\
**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 24, 2017, 3:30pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/1 "2017-10-24T15:30:36Z")

</div>

**[hujingrui](https://sourceforge.net/u/hujingrui/)** wrote on [Tuesday, October 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#c4c7):

Hi, i am currently using arduino freertos for a school project but then i realise that the rate which it ticks is quite slow - configTICK\_RATE\_HZ is 62. so in one second the maximum times i can sample my readings is only 62 which is not what i wanted. Is there a way to make it faster?  
The freertos that i am importing is from this page [https://github.com/feilipu/Arduino\_FreeRTOS\_Library](https://github.com/feilipu/Arduino_FreeRTOS_Library)

---

<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:** [October 24, 2017, 3:34pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/2 "2017-10-24T15:34:47Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, October 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#c4c7/7278):

Not familiar with the port, or really with Arduino, but what happens if  
you simply change the configTICK\_RATE\_HZ setting and re-compile?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [October 24, 2017, 4:09pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/3 "2017-10-24T16:09:14Z")

</div>

**[hujingrui](https://sourceforge.net/u/hujingrui/)** wrote on [Tuesday, October 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#1551):

well it is located at FreeRTOSVarient.h file. changing it just changes the value that i am printing but it doesnt do anything much for the time. Could it be a timer configuation problem. The code looks too complex for me to solve

---

<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:** [October 24, 2017, 5:28pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/4 "2017-10-24T17:28:28Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, October 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#1551/bf5a):

Sorry - I’m not familiar with that port or how it runs. In the demos we  
provide the configTICK\_RATE\_HZ constant is used in the port layer where  
the clock is set up to generate the RTOS tick interrupt. That code gets  
called between vTaskStartScheduler() being called in the application  
code and the first task starting to run. The application is statically  
linked so it runs when you boot the system up. That last part might be  
different on the Arduino if you are downloading sketches to an already  
running system.

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [October 24, 2017, 10:16pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/5 "2017-10-24T22:16:51Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Tuesday, October 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#1551/bf5a/8143):

The Arduino ports of FreeRTOS that I have seen uses the watch dog timer for  
tick, this is due to the Arduino environment captureing all the timers  
until after code startup. Makeing them unavailable to FreeRTOS when it  
starts.

On Tue, Oct 24, 2017 at 1:28 PM Real Time Engineers ltd. [rtel@users.sf.net](mailto:rtel@users.sf.net)  
wrote:

> ## Sorry - I’m not familiar with that port or how it runs. In the demos we provide the configTICK\_RATE\_HZ constant is used in the port layer where the clock is set up to generate the RTOS tick interrupt. That code gets called between vTaskStartScheduler() being called in the application code and the first task starting to run. The application is statically linked so it runs when you boot the system up. That last part might be different on the Arduino if you are downloading sketches to an already running system.
> 
> ## arduino freertos configTICK\_RATE\_HZ 62 [https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/p/freertos/discussion/382005/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)

–

~~\_/) `_/)` \_/) ``` \_/)~~

Tom Lafleur

---

<div class="post-metadata">

**Author:** ![tlafleur](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlafleur](https://forums.freertos.org/u/tlafleur)\
**Post date:** [November 10, 2017, 12:22pm UTC](https://forums.freertos.org/t/arduino-freertos-configtick-rate-hz-62/6836/6 "2017-11-10T12:22:40Z")

</div>

**[tlafleur](https://sourceforge.net/u/tlafleur/)** wrote on [Friday, November 10, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/#1551/bf5a/8143/cf94):

There is an Arduino port for the SAMD21 processor that you may want to look  
at… the resources available on this chip make it a lot more practical to  
run FreeRTOS than trying to run it on an 8 bit 328…

Again, you may have issues with the Arduino IDE wanting full control…

> **[GitHub - BriscoeTech/Arduino-FreeRTOS-SAMD21: A port of FreeRTOS that runs on...](https://github.com/BriscoeTech/Arduino-FreeRTOS-SAMD21)**
>
> A port of FreeRTOS that runs on Arduino Samd21 boards - GitHub - BriscoeTech/Arduino-FreeRTOS-SAMD21: A port of FreeRTOS that runs on Arduino Samd21 boards

On Tue, Oct 24, 2017 at 3:16 PM lafleur [tlafleur@users.sf.net](mailto:tlafleur@users.sf.net) wrote:

> The Arduino ports of FreeRTOS that I have seen uses the watch dog timer for  
> tick, this is due to the Arduino environment captureing all the timers  
> until after code startup. Makeing them unavailable to FreeRTOS when it  
> starts.
> 
> On Tue, Oct 24, 2017 at 1:28 PM Real Time Engineers ltd. [rtel@users.sf.net](mailto:rtel@users.sf.net)  
> wrote:
> 
> Sorry - I’m not familiar with that port or how it runs. In the demos we
> 
> provide the configTICK\_RATE\_HZ constant is used in the port layer where  
> the clock is set up to generate the RTOS tick interrupt. That code gets  
> called between vTaskStartScheduler() being called in the application  
> code and the first task starting to run. The application is statically  
> linked so it runs when you boot the system up. That last part might be  
> different on the Arduino if you are downloading sketches to an already  
> running system.
> 
> * * *
> 
> arduino freertos configTICK\_RATE\_HZ 62
> 
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a)
> 
> * * *
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/p/freertos/discussion/382005/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)
> 
> –
> 
> ~~\*/) `*/)` \*/) ``` \*/)~~
> 
> ## Tom Lafleur
> 
> ## arduino freertos configTICK\_RATE\_HZ 62 [https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a/8143](https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a/8143)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/p/freertos/discussion/382005/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)

–

~~\_/) `_/)` \_/) ``` \_/)~~

Tom Lafleur
