Quality RTOS & Embedded Software

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


[PIC32] undefined reference to `vTaskDelay'

Posted by marc druelle on October 14, 2010
i have a big problem with a file who contain this function :
void demon_heure(void *ptr)

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

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo & Nuvoton Cortex-M23 demo.

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

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


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

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

Xilinx Microblaze and Zynq partner