FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [December 2016 Threads]
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 ??
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.
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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.