Quality RTOS & Embedded Software

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


Loading

Reset software Timers Queue in FreeRTOS

Posted by vpkzenman on December 1, 2016

Hello all,

Being a newbee to freeRTOS, i made myself aware that we could reset the message queue in the FreeRTOS, but is it also possible to reset the software timer queue before starting a new software timer module. I could not find any document relating to Timer queues. I see that its possible to stop the timer using xTimerstop() function but will this reset the queue too ??


Reset software Timers Queue in FreeRTOS

Posted by rtel on December 1, 2016

I'm not sure what you mean by the timer queue. When you stop a software timer the only effect it has it to stop the timer - not queues are effected.


Reset software Timers Queue in FreeRTOS

Posted by vpkzenman on December 1, 2016

So in a project with FreeRTOS on STM32F103, i had issues of cloging the message Queue. I run like 6 different tasks and push data messages to the Queue from atleast 3 tasks. with all taks running in same priority level.

I saw that after receiving the queue data from two taks the queue gets full (with queue size set too 128). So i had to reset the Queue to populate the data messages of task three on the Queue.

Contrary in an other instance i start a software timer from a state machine running in one of the task. When i start the timer i get a "true" return value, meaning the software timer was pushed to the timer queue with out any problem. But when i wait for this timer to time out after 40sec which is the period set during the start it does not time out at all and this callback function is never executed !!!

So i tried to increase the "#define configTIMERQUEUELENGTH 50" but this seems to not help me as well.

Hope this gives more detail about what i am facing. Looking forward for your kind response.


[ 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