# RTOS with MPLAB XC8 Compiler

**URL:** <https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522>\
**Category:** Microchip\
**Created:** [September 25, 2024, 12:34pm UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522 "2024-09-25T12:34:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_hayee](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@a\_hayee](https://forums.freertos.org/u/a_hayee)\
**Post date:** [September 25, 2024, 12:34pm UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522/1 "2024-09-25T12:34:17Z")

</div>

Hi Guys,  
I am new user for RTOS, I have never used RTOS before so I think this FreeRTOS is a great platform to learn the things.  
I am developing my project using PIC18f46K22, MPLAB and XC8 compiler.  
I want to know that can I use FreeRTOS with the defined microcontroller and IDE?

Thanks and best regards  
Abdul Hayee

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [September 25, 2024, 2:41pm UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522/2 "2024-09-25T14:41:10Z")

</div>

I see this PIC18 port which you should be able to use - [FreeRTOS-Kernel/portable/MPLAB/PIC18F at main · FreeRTOS/FreeRTOS-Kernel · GitHub](https://github.com/FreeRTOS/FreeRTOS-Kernel/tree/main/portable/MPLAB/PIC18F). The easiest way to get started is to see if Harmony can generate a project with FreeRTOS for you.

---

<div class="post-metadata">

**Author:** ![a\_hayee](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@a\_hayee](https://forums.freertos.org/u/a_hayee)\
**Post date:** [September 26, 2024, 5:34am UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522/3 "2024-09-26T05:34:50Z")

</div>

Thanks @aggarg for your reply.  
Can you share or give link to some example projects

Thanks

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [September 26, 2024, 6:23am UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522/4 "2024-09-26T06:23:13Z")

</div>

We have [this PIC18 example](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS/Demo/PIC18_MPLAB) but I am not sure if it is for the exact same chip as yours. As I suggested before, the best way to get started is to use Harmony to generate a project.

---

<div class="post-metadata">

**Author:** ![a\_hayee](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@a\_hayee](https://forums.freertos.org/u/a_hayee)\
**Post date:** [September 27, 2024, 4:53am UTC](https://forums.freertos.org/t/rtos-with-mplab-xc8-compiler/21522/5 "2024-09-27T04:53:53Z")

</div>

Thanks @aggarg  
Let me check this and if any other questions then I will get back to you

Thanks
