Getting error for vTaskDelayUntil task

ephobb wrote on Tuesday, December 29, 2015:

Hi,

i was trying to use the vTaskDelayUntil task in one task. but compiler throwing some error’s.
error as:

freeRTOS Configuration\freeRTOS 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.

davedoors wrote on Tuesday, December 29, 2015:

have you set INCLUDE_vTaskDelayUntil to 1 in FreeRTOSConfig.h?

ephobb wrote on Tuesday, December 29, 2015:

Thanks, i was not aware of this.

ephobb wrote on Tuesday, December 29, 2015:

Thanks, i was not aware of this.

rtel wrote on Tuesday, December 29, 2015:

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.