Quality RTOS & Embedded Software

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


Loading

Change configTICK_RATE_HZ in real-time

Posted by simointe on October 31, 2016

(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 configTICKRATEHZ too much.


Change configTICK_RATE_HZ in real-time

Posted by edwards3 on October 31, 2016

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.


Change configTICK_RATE_HZ in real-time

Posted by simointe on November 1, 2016

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 ?


Change configTICK_RATE_HZ in real-time

Posted by rtel on November 1, 2016

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


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner