Setting Up FreeRTOS on Arduino
In this tutorial, we will see how to setup the Arduino IDE for FreeRTOS.
After setting up the IDE, we will run the first FreeRTOS example on Arduino Uno.
Running First Example
Please check this tutorial for freeRtos configuration.
The original free rtos project can be downloaded here.
It uses heap_3.c file and memory allocation is done by malloc() and free() functions. Heap size needs to be configured through linker setting and configTOTAL_HEAP_SIZE setting in FreeRTOSConfig.h has no effect.
In order to solve this we will be using heap_4.c. Please check this link for more info on freeRtos heap usage.
Download the complete project and libraries from here.
Have an opinion, suggestion , question or feedback about the article let it out here!