Vikilabs: Installing and Setting-Up Eclipse Ide To Run Your First Freertos Project (On A Windows PC)
Vikilabs: Installing and Setting-Up Eclipse Ide To Run Your First Freertos Project (On A Windows PC)
July 8, 2017
1 Installations
1. Download the latest version of FreeRTOS from http://www.freertos.
org or directly from https://sourceforge.net/projects/freertos/
files/latest/download?source=files which is available as both
a standard zip file (.zip), and as a self extracting zip file (.exe).
1
4. Make sure Java is included in Path of your Windows PC. This is
accessed by typing System Variables in the search box on the Start
Menu. Choose “Edit the System Environment Variables”. Click
“Environment Variables” In System Variable, Choose Path and in-
clude the location of the java installation, e.g. “ C:\ProgramFiles\
Java\jdk1.xx_xx\bin” as shown in Fig. 1. Restart your computer
after installing or updating Java.
6. Click the “Add” tab and choose “CDT ....” Tick “CDT Main
Features” and “Uncategorised” box as seen in Fig. 3. Click “Next”.
10. The last installation will be the MingW compilation tools. Down-
load MingW from https://sourceforge.net/projects/mingw/
files/ and install as shown in Fig. 6.
11. After set up installation, the window in Fig. 7 will appear, mark
“mingw-developer-tool”, “mingw32-base”, “mingw32-gcc-g++” and
“msys-base” for installation as shown.
2
14. After installation is completed, close all MingW installation boxes.
The MingW files are found in the “ C:\MinGW” directory. Add this
to Windows System Variables Path by following the same procedure
when Java JDK was added to path (Fig. 10).
15. The Eclipse project for the FreeRTOS application is located in the
“ FreeRTOS/Demo/WIN32-MingW” folder. It’s now time to import
it into the Eclipse IDE.
Figure 1
Figure 2
3
Figure 3
Figure 4
4
Figure 5
Figure 6
5
Figure 7
Figure 8
6
(a) (b)
Figure 9
Figure 10
7
2 Importing the FreeRTOS simulator project
into an Eclipse IDE
To import the FreeRTOS simulator project into Eclipse,
2. Select “Import” from the Eclipse “File” menu. A dialogue box will
appear as shown in Fig 11.
8
Figure 11
9
Figure 12
10
Figure 13
Figure 14
11
Figure 15
• C:\MinGW\lib\gcc\mingw32\5.3.0\include
• C:\MinGW\include
• C:\MinGW\lib\gcc\mingw32\5.3.0\include-fixed
12
Figure 16
Figure 17
13