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


no definition for "xQueueCreateCountingSemaph

Posted by Beja Nissim on April 20, 2009
Dear all,

I using the STM3210E-EVAL board which is based on the ST microelectronics STM32f103 uController.
I'm trying to use FreeRTOSV5.1.1 with IAR embedded workbench 5.20.

Based on the Demo project, i tried to use xSemaphoreCreateCounting() function but got the following
Linking Error:
Error[Li005]: no definition for "xQueueCreateCountingSemaphore" [referenced from F:\OS_Projects

After digging a bit i found the following:
1. Inside semphr.h - there is this line

#define xSemaphoreCreateCounting( uxMaxCount, uxInitialCount )
xQueueCreateCountingSemaphore( uxMaxCount, uxInitialCount )

it seems that xSemaphoreCreateCounting( uxMaxCount, uxInitialCount ) does not have any
implementation at all.

Is this the reason i got the linking error which i mentioned above?
If not, can some let me know what would be the problem?

2. Does anyone know used xSemaphoreCreateCounting() function? if so, i would be happy to know

Thanks in advanced

RE: no definition for "xQueueCreateCountingSe

Posted by MEdwards on April 20, 2009
xQueueCreateCountingSemaphore() is defined in queue.c line 419 (version 5.2.0). configUSE_COUNTING_SEMAPHORES must be defined.

It is used by some of the demo app tasks.

RE: no definition for "xQueueCreateCountingSe

Posted by Beja Nissim on April 20, 2009

I just saw it.

[ 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