Line 21: Line 21:
 
=Heap Settings=
 
=Heap Settings=
 
The original free rtos project can be downloaded here.  
 
The original free rtos project can be downloaded here.  
It uses Heap1.c file and size needs be configured before compilation.  
+
It uses Heap3.c file and size needs be linker configuration for heap size and onfigTOTAL_HEAP_SIZE setting in FreeRTOSConfig.h has no effect when heap_3 is used.  
In order to solve this we will be using heap3.c.
+
In order to solve this we will be using heap4.c.
PLease check [http://www.freertos.org/a00111.html this link] for more info on freeRtos heap usage.
+
Please check [http://www.freertos.org/a00111.html this link] for more info on freeRtos heap usage.
  
 
=Downlaods=
 
=Downlaods=

Revision as of 18:47, 23 June 2016

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.

Setting Up

Download and install the Arduino IDE from this link.
Downlaod the FreeRtos files form the github and paste into the library folder of arduino.
The folder structure should be as shown below. FreeRtosFolderStructure.png

Running First Example

Now run the the IDE and open the first example from File->Examples->FreeRTOS->01-TaskSwitching as shown in below image.
FreeRtosExample1.png

Compile and upload the code. Open the serial monitor to see the output.
FreeRtosExample1Output.png


FreeRtos Config

Heap Settings

The original free rtos project can be downloaded here. It uses Heap3.c file and size needs be linker configuration for heap size and onfigTOTAL_HEAP_SIZE setting in FreeRTOSConfig.h has no effect when heap_3 is used. In order to solve this we will be using heap4.c. Please check this link for more info on freeRtos heap usage.

Downlaods