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


undefined reference to `xQueueCreateCountingS

Posted by parera on November 22, 2011
I wanted to use counting semaphores in a RX62 FreeRtos Project, GnuRX toolchain, the iead was to use
xSemaphoreGiveFromISR( xSci_Semaphore, &xHigherPriorityTaskWoken ); inside the SCI rx interrupt to detect comands on the serial port

i declare the

static xSemaphoreHandle xSci_Semaphore = NULL; //pot ser counting o Binary
when i call the function

xSci_Semaphore=xSemaphoreCreateCounting( 10,0);//fins a rebre 10 salts de linia no pot quedar-se pillat

I get

Phase Compiler finished
Phase Linker starting

C:\WorkSpace\Mine_RTOS_702\Mine_RTOS_702\Debug\main_.o: In function `GPS':

C:\WorkSpace\Mine_RTOS_702\Mine_RTOS_702/main_.c:194: undefined reference to `xQueueCreateCountingSemaphore'

Phase Linker finished

Build Finished

1 Error, 0 Warnings

in FreeRTOSConfig.h i have defined

#define configUSE_MUTEXES 1

and i have included this in main_.c

/* FreeRTOS.org includes. */
/* Kernel includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"

Before i just used a binarySemaphore just fine in the same project, even if i try to use it in the reference project i get the same error.
In the book, the example 12 uses thet function just fine on the Renesas compiler hew project

Thank you very much for reading and any help or hints

RE: undefined reference to `xQueueCreateCountingS

Posted by woops_ on November 22, 2011
“#define configUSE_MUTEXES 1

Is this cut from your source or a mistype in your post? "Config" must be "config"

RE: undefined reference to `xQueueCreateCountingS

Posted by parera on November 23, 2011
thank you very much woops, it was that, yes that was a copy paste and was a mistype

[ 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