Quality RTOS & Embedded Software

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


xQueueSend appends CR LF?

Posted by Duncan McNamara on September 28, 2012

I have a web client that is requesting a file from a server and sending it to the stdout (UART) and plan for other destinations. For resource management, the buffer used for response has been 8 bytes. This works fine with a direct write to the UART (bad in RTOS) but the xQueueSend in the following case appends CR and or LF. This breaks up the single stream of HTML and is not desirable.

xUARTMessage.pcMessage = vBuffer;
xQueueSend(xUARTQueue, &xUARTMessage, portMAX_DELAY );

vBuffer is NULL terminated. Could the termination be that cause? I can not find the reason in Queue.c


RE: xQueueSend appends CR LF?

Posted by Duncan McNamara on September 28, 2012
Dear all,

Please forgive me for this post. The handling of the strings was on my side from xQueueRecieve and how I handled the UART. Issue closed.

[ 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