arduino freertos configTICK_RATE_HZ 62

hujingrui wrote on Tuesday, October 24, 2017:

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

rtel wrote on Tuesday, October 24, 2017:

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

hujingrui wrote on Tuesday, October 24, 2017:

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

rtel wrote on Tuesday, October 24, 2017:

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.

tlafleur wrote on Tuesday, October 24, 2017:

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
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

Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.net

To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net

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

Tom Lafleur

tlafleur wrote on Friday, November 10, 2017:

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…

On Tue, Oct 24, 2017 at 3:16 PM lafleur 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
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


Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.net

To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net

~~ */) */) */) ``` */) ~~

Tom Lafleur

arduino freertos configTICK_RATE_HZ 62
https://sourceforge.net/p/freertos/discussion/382005/thread/cb166387/?limit=25#1551/bf5a/8143

Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.net

To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net

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

Tom Lafleur