Quality RTOS & Embedded Software

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


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.

[ 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.

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.


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


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