cuffia wrote on Monday, October 27, 2008:
I got the same error compiling ARM7_LPC2368_Eclipse:
…/…/…/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 )
#if (configUSE_TRACE_FACILITY == 1) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
should fix this issue.