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

usTaskCheckFreeStackSpace undefined?

Posted by M J on October 27, 2008
I get an error when trying to compile the "ARM7_AT91SAM7X256_Eclipse" demo.

It states:
Description Resource Path LocationType ../../../Source/tasks.c undefined reference to usTaskCheckFreeStackSpace'RTOSDemo 1825 C/C++ Problem

Anybody know how to address this error? I cannot seem to figure out where I went wrong.

Thanks!

RE: usTaskCheckFreeStackSpace undefined?

Posted by M J on October 27, 2008
I went a head and tried all the other Eclipse demos. They gave me either that same error during compile or couldn't find the compiler "cs-make".

I'm assuming the other demos were not for Yagarto. Still stumped.

RE: usTaskCheckFreeStackSpace undefined?

Posted by Claudio Destro on October 27, 2008
I got the same error compiling ARM7_LPC2368_Eclipse:

> make
../../../Source/tasks.o: In function `prvListTaskWithinSingleList':
...\freertos\Demo\ARM7_LPC2368_Eclipse\RTOSDemo/../../../Source/tasks.c:1825: undefined reference to `usTaskCheckFreeStackSpace'

I think the problem arises in the fact that the function is declared if ONE of the following macros is set to 1:

configUSE_TRACE_FACILITY == 1 || INCLUDE_uxTaskGetStackHighWaterMark == 1

The function is finally defined only if the INCLUDE_uxTaskGetStackHighWaterMark macro is set, but it is used in prvListTaskWithinSingleList, which is defined only if configUSE_TRACE_FACILITY is set.


I cannot test the following fix, but changing line 1835 of tasks.c from

#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )

to

#if (configUSE_TRACE_FACILITY == 1) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )

should fix this issue.

RE: usTaskCheckFreeStackSpace undefined?

Posted by Richard on October 29, 2008
Somebody opened a bug report on this a couple of days ago. See
http://sourceforge.net/tracker/index.php?func=detail&aid=2194064&group_id=111543&atid=659633

I will try to get this fixed today if possible.

Regards.

RE: usTaskCheckFreeStackSpace undefined?

Posted by Richard on October 29, 2008
This is now fixed in SVN and will get incorporated into the next release.

Regards.

RE: usTaskCheckFreeStackSpace undefined?

Posted by Tim on November 12, 2008
I tried the fix recommended by cuffia on an LPC2138 board and it worked fine.
Thanks Cuffia.

tim


[ 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