Quality RTOS & Embedded Software

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




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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists