Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

[PIC32] undefined reference to `vTaskDelay'

Posted by marc druelle on October 14, 2010
hi,
i have a big problem with a file who contain this function :
void demon_heure(void *ptr)
{
while(1)
{
heure_maj();
vTaskDelay(250/portTICK_RATE_MS);
}
}


in unique file, c32 return me error :
Heure.c:16: undefined reference to `vTaskDelay'

in main file, all is OK.


the include section of all theses files are :

#include "recepteur.h"
#include "string.h"
#include "stdlib.h"
#include "FSIO.h"
#include "ImageDecoder.h"


in recepteur.h :
#include "FreeRTOSConfig.h"
#include "FreeRTOS.h"
#include "task.h"


what is the problem ???

RE: [PIC32] undefined reference to `vTaskDelay'

Posted by marc druelle on October 14, 2010
all is ok,
in main file, i put theses lines under while(1) function,
c32 does not compile code after this function.
my problem is a mismatch config.

RE: [PIC32] undefined reference to `vTaskDelay'

Posted by Dave on October 15, 2010
To use vTaskDelay you need to have

#include "FreeRTOS.h"
#include "task.h"


You do not need to include FreeRTOSConfig.h because it is included inside FreeRTOS.h.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS