# Using FreeRTOS with Arduino SDK

**URL:** <https://forum.amebaiot.com/t/using-freertos-with-arduino-sdk/2750>\
**Category:** SDK\
**Tags:** rtl872xd\
**Created:** [March 1, 2024, 10:55am UTC](https://forum.amebaiot.com/t/using-freertos-with-arduino-sdk/2750 "2024-03-01T10:55:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvdw](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mvdw](https://forum.amebaiot.com/u/mvdw)\
**Post date:** [March 1, 2024, 10:55am UTC](https://forum.amebaiot.com/t/using-freertos-with-arduino-sdk/2750/1 "2024-03-01T10:55:58Z")

</div>

Is it possible to use FreeRTOS with the Arduino SDK?

This post: [FreeRTOS Scheduling Issue (rtl8720dn)](https://forum.amebaiot.com/t/freertos-scheduling-issue-rtl8720dn/507) seems to suggest it’s possible to add vanilla FreeRTOS to the arduino IDE, but I can’t see it in the listed libraries, nor do any of the examples that I saw explicitly include FreeRTOS.h and the FreeRTOS library.

I want to use pretty much vanilla FreeRTOS in the main event loop, but I’m not sure how to achieve that.

Is it just a matter of #include’ing FreeRTOS.h and magic happens behind the scenes?? I’ve not used Arduino before and the way the libraries are included and linked is a little opaque.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [March 2, 2024, 2:12am UTC](https://forum.amebaiot.com/t/using-freertos-with-arduino-sdk/2750/2 "2024-03-02T02:12:08Z")

</div>

Hi @mvdw ,

It is definitely possible to use FreeRTOS with Arduino SDK. However, the reason you do not see any examples using FreeRTOS library, is that Arduino SDK is designed to simplify coding for users and users who want to use FreeRTOS directly should use the open source standard SDK, or if you have the NDA, you can access the closed-source SDK which will allow you to have dedicated technical support and access to more features.

Thank you.
