FreeRTOS to PIC18F using XC8

This post answers this question - FreeRTOS on PIC18F.

If your goal is to learn how to port FreeRTOS to new hardware, it may be better to start with a platform for which a port already exists, so you can use it as a reference when needed.