c - Using FreeRTOS with XC8 compiler -
I am trying to set up FreeRTOS with the XC8 compiler without any success. I searched the Internet but I do not know much about it, I am using PIC18F46K80, so I can not use C18 because it is not supported.
I am trying to compile this minimum program:
#include & lt; P18f46k80.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; FreeRTOS.h & gt; Int main (int arc, four ** argv) {return (EXIT_SUCCESS); }
I have included the path related to the compiler:
And the error I am getting is this:
Include in free RTOS / source / timers. H: 71: Error: (103) #Terror: "Include FreeRTOS." The source files should appear before joining.
Include FreeRTOS / Source / task.h: 71: Error: (103) #Terror: "Includes freeRTOSH should appear in source files before joining."
You can clearly see that I'm including FreeRTOS.h
. Manually add #define
to timers.h
for example here:
#ifndef INC_FREERTOS_H #error "contains The freeRTOS.h timer should appear in the source files before incorporating the timer. "#endif
The error is removed but I get many new errors, it is possible to use FreeRTOS with XC8 is not? Is there any other free RTOS available for XC8?
I tried with C18 but the latest version of FreeRTOS is no longer compiled on PIC18 FreeRTOS Due to fragmented architecture they are no longer supporting the community, so if you want to use RTOS with PIC 24 or higher or trying some simple RTOS ready for PIC 18!
Comments
Post a Comment