Getting error for vTaskDelayUntil task

Hi, i was trying to use the vTaskDelayUntil task in one task. but compiler throwing some error’s. error as: freeRTOS ConfigurationfreeRTOS Configuration.axf: Error: L6218E: Undefined symbol vTaskDelayUntil (referred from main.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages. I checked vTaskDelay is working but if i use vTaskDelayuntil then compiler start throwing errors. i m using Keil compiler.

Getting error for vTaskDelayUntil task

have you set INCLUDE_vTaskDelayUntil to 1 in FreeRTOSConfig.h?

Getting error for vTaskDelayUntil task

Thanks, i was not aware of this.

Getting error for vTaskDelayUntil task

Thanks, i was not aware of this.

Getting error for vTaskDelayUntil task

vTaskDelayUntil() is implemented in FreeRTOS/Source/tasks.c (that is what the ‘Task’ in the function name means). You can search for the function in that file to see that it has a dependency on INCLUDE_vTaskDelayUntil. Pre-processor symbols that remove entire functions are generally a waste of space anyway, as most linkers will automatically remove functions that are not referenced. The only toolchain I know that doesn’t do that by default is GCC – but most people (and GCC vendors) that use GCC manually set the compiler options to remove dead code.