I have included the header files and I have verified if the path of each file is correctly identified by the compiler. Still when I try to build the program it shows undefined reference to ‘vTaskStartSchedular’ and ‘xTaskCreate’.
I am also not sure what to do with timer.c, coroutine.c, and other C files.
Have you included the FreeRTOS source files in your project? those would be things like tasks.c, queue.c, timer.c etc. Those are the files where the code for the functions of FreeRTOS are defined.
Yes, all infact I have copied all the header files, source files (.h and .c) in the same folder itself. Then it gives the following error. I don’t where pvPortMalloc is defined.
Yes, all infact I have copied all the header files, source files (.h and
.c) in the same folder itself. Then it gives the following error. I
don’t where pvPortMalloc is defined.
What have you done to try and rectify this problem. For example, in
your screen shot it shows that this code only builds if
configGENERATE_RUN_TIME_STATS is set to 1. Do you have it set to 1?
Did you intend having it set to 1? Did you google the constant on the FreeRTOS.org website so you can find its documentation?