I’m using a SAM4E Xplained Board in Microchip Studio. I don’t know why xTaskCreate and xTaskDelay will compile just fine. However, even with including task.h, and setting the include and gcc arm directories up in properties… I keep gettting the linker errosr:
undefined reference to vTaskSuspect, Resume, etc
ld returned 1 exit status
Why and what do I do to fix it?
Many thanks in advance!
To you compile and link the FreeRTOS source files like tasks.c, too ?
Please ensure that
INCLUDE_vTaskSuspend is set to
1 in your FreeRTOSConfig.h.
Yep, that was it. Forgot to add the defines. For anyone else, I added task.h and that was enough. There’s no need to also, in properties or via include, add task.c as in some C compilers. At least, not for a Microchip Studio-based project as it is all I can speak to here.