Difference between revisions of "Starting with FreeRTOS"
m |
|||
Line 1: | Line 1: | ||
− | [[category: | + | [[category: RTOS Tutorials]] |
---- | ---- |
Revision as of 13:16, 6 April 2015
Intro
Downloads
FreeRTOS V7.2.0
http://sourceforge.net/projects/freertos/files/FreeRTOS/V7.2.0/FreeRTOSV7.2.0.exe/download
Locating Files for your project
If you have downloaded FreeRTOS you will see that there are lots of files available. If its your first time of using any RTOS, it will be really confusing for you.
Let us make the stuff easy for you.
There are some common files which you can use for any controller while some are controller specific files. These controller specific files are called Port files in which all ports and some functions will be defined (mainly in assembly language).
You can find the common files in Source Directory and in include folder under same directory.
To get the Port files first you need to decide which compiler you want to use.
Here we will be using Keil compiler.
So now go to the FreeRTOSV7.2.0\FreeRTOS\Source\portable\Keil. It will ask you to see RVDS directory.
As we want to work on LPC1768 which is a Cortex M3 processor, go to ARM_CM3 folder. Here are our port files. Include both the files to your project.
Setting up Keil for FreeRTOS
The next task will be setting up compiler.
When you create a project in Keil, it asks whether to add startup.s file to your project, say yes to it. But some changes are required to do in this startup.s file.
Click here to download this startup.s file, also the modified version of FreeRTOSconfig.h and just replace it with original files in your project.
Apart from all these files you will also need lpc1768 header files.
To make it simpler, head towards our Github page to find all the files on a click and at one place.