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

XQueueSendToFront known issues

Posted by znatok on February 6, 2014

Hi I would like to ask if there are any known issues with xQueueSendToFront API call on CortexM3? If I use xQueueSend insted of xQueueSendToFront everything works fine in my code, otherwise I see symptoms of memory leakage (code flow goes wild and change it's behavior if I move pieces of code). In my test I send messages to empty Queue so logically there should be no difference between these two functions. I'm using version 7.4.2. Memory allocation heap4. Queue death is 16 elements. I send messages with 0 wait time. Thanks.


XQueueSendToFront known issues

Posted by rtel on February 6, 2014

I am not aware of any issues, and nobody has ever mentioned anything particular to sending to the front of a queue before. That said, sending to the front is not use that much, so has less exercise. Most of the function is identical though, it is only the short sequence of instructions that actually copies the data to the queue that is different.

Are you able to re-produce the issue in a small program? Are there any particular pre-conditions that must exist for the issue to arise, for example, for the queue to start empty?

Most Cortex-M issues actually result from misconfiguration of the interrupt priorities. There is lots written on the FreeRTOS.org website about this (start with the "my application does not run what could be wrong FAQ and follow your nose to the Cortex-M specific information). The easiest first step would be to upgrade your FreeRTOS version then ensure configASSERT() is defined because the later versions have addition assert() statements that are placed specifically to catch the most common interrupt priority issues.

Regards.


[ 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