Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

arduino freertos configTICK_RATE_HZ 62

Posted by hujingrui on 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 - configTICKRATEHZ 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/ArduinoFreeRTOSLibrary


arduino freertos configTICK_RATE_HZ 62

Posted by rtel on October 24, 2017

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


arduino freertos configTICK_RATE_HZ 62

Posted by hujingrui on 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


arduino freertos configTICK_RATE_HZ 62

Posted by rtel on October 24, 2017

Sorry - I'm not familiar with that port or how it runs. In the demos we provide the configTICKRATEHZ 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

Posted by tlafleur on 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 configTICKRATEHZ 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 configTICKRATEHZ 62

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

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

Tom Lafleur

Attachments

alternate (2074 bytes)

arduino freertos configTICK_RATE_HZ 62

Posted by tlafleur on 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...

https://github.com/BriscoeTech/Arduino-FreeRTOS-SAMD21

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

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


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

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

Tom Lafleur

arduino freertos configTICKRATEHZ 62

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

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

Tom Lafleur

Attachments

alternate (4002 bytes)


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS