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] [March 2012 Threads] QueueSend on a full queue doesn't unblock?Posted by Henrik on March 30, 2012 I have a thread (with the highest priority of all my threads) filling a queue.
if (xQueueSend(xRFOutRaw,&data,100)!=pdPASS)
When it's full I would like it to block upto 100ms waiting for my interrupt routine to receive data
The interrupt routine receives the data:
if (xQueueReceiveFromISR(xRFOutRaw, &data, &xHigherPriorityTaskWoken) != pdPASS )
Note: The xHigherPriorityTaskWoken is always false, even when the QueueSend is blocking. How come? When the data is received, I would like my thread waiting to complete the send to unblock imediately, but it doesn't.
I'm running on a STM32. I've checked the intterrupt priorities and they are ok (above (configMAX_SYSCALL_INTERRUPT_PRIORITY >> 4), and NVIC_PriorityGroup_4 is set), there must be somthing other than that causing my problem.
Is it ok to full upp a queue like I do here and expect it to unblock when there is space available in the queue? Do I have to enably something in the FreeRTOSconfig to make it work?
RE: QueueSend on a full queue doesn't unblock?Posted by Henrik on March 30, 2012 I don't know that I've done, but it's now working as expected.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|