Difference between revisions of "Setting Up FreeRTOS on Arduino"
Raghavendra (Talk | contribs) |
|||
Line 27: | Line 27: | ||
=Downloads= | =Downloads= | ||
Download the complete project and libraries from [https://github.com/ExploreEmbedded/Arduino_FreeRTOS/archive/master.zip here].<br><br> | Download the complete project and libraries from [https://github.com/ExploreEmbedded/Arduino_FreeRTOS/archive/master.zip here].<br><br> | ||
+ | |||
+ | |||
+ | |||
+ | Explore M3 is a feature rich ARM Cortex M3 development board. It can help you prototype ideas faster with Arduino/mbed and take them be beyond with bare metal programming, RTOS support and lower power modes if need be. - [https://hackaday.io/project/10711-explore-m3 See More] | ||
+ | [[File:Explore M3 pinout v1.0.jpg|center]] | ||
Have a opinion, suggestion , question or feedback about the article let it out here! | Have a opinion, suggestion , question or feedback about the article let it out here! | ||
{{DISQUS}} | {{DISQUS}} |
Revision as of 18:14, 1 July 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.
Running First Example
Now run the the IDE and open the first example from File->Examples->FreeRTOS->01-TaskSwitching as shown in below image.
Compile and upload the code. Open the serial monitor to see the output.
FreeRtos Configuration
Please check this tutorial for freeRtos configuration.
Heap Settings
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.
Downloads
Download the complete project and libraries from here.
Explore M3 is a feature rich ARM Cortex M3 development board. It can help you prototype ideas faster with Arduino/mbed and take them be beyond with bare metal programming, RTOS support and lower power modes if need be. - See More
Have a opinion, suggestion , question or feedback about the article let it out here!