Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner