Port FREERTOS on efm32

smartfusion wrote on Monday, October 17, 2011:

Hello everybody
Since a week I tried to port FreeRTOS on the efm32 gecko dev kit,and I have this error :

undefined reference to `vTaskDelete’.

I dont work on IAR , i just copied files into Coocox CoID ,and it compiles , but when the link step begin I have this error.
Can you please tell me what i’m doing wrong?

rtel wrote on Monday, October 17, 2011:

Search the FreeRTOS/Source directory for the definition of vTaskDelete() - look at it - and you will probably see what you are doing wrong.

Regards.

smartfusion wrote on Monday, October 17, 2011:

I did it ther is no definition just this :

void vTaskDelete( xTaskHandle pxTaskToDelete ) PRIVILEGED_FUNCTION;

smartfusion wrote on Monday, October 17, 2011:

sorry i found it !! I will see if i can solve the problem thanks

smartfusion wrote on Monday, October 17, 2011:

I found that this line  makes the problem :

#if ( INCLUDE_vTaskDelete == 1 )
what that means?However  I included the path directory where the file definition is present.

smartfusion wrote on Monday, October 17, 2011:

ANOTHER QUESTION IF YOU ALLOW :

I have also an error : #error This demo uses timers. configUSE_TIMERS must be set to 1 in FreeRTOSConfig.h.

and in the config file :

#ifndef configUSE_TIMERS
	#error This demo uses timers.  configUSE_TIMERS must be set to 1 in FreeRTOSConfig.h.
#endif
#if configUSE_TIMERS != 1
	#error This demo uses timers.  configUSE_TIMERS must be set to 1 in FreeRTOSConfig.h.
#endif

thats mean in the two cases I have the same error ,I don’t really understand all thes process because it is not really my work ,so any suggestion to unblock these problems?what i’m missing exactly?

davedoors wrote on Monday, October 17, 2011:

As the error says, you need to set configuration options in FreeRTOSConfig.h, which will be in your application source tree somewhere. The options are listed here http://www.freertos.org/a00110.html