Step 1: First Install The Mingw: Freertos Simulator Test Procedure For Windows Using Eclipse
Step 1: First Install The Mingw: Freertos Simulator Test Procedure For Windows Using Eclipse
MinGW is a software package which provides GNU tools for windows such as
C/C++ compiler, linker, etc
Go here: http://www.mingw.org/category/wiki/download
First double click on “Eclipse” icon and give a name for the workspace as
shown below
After that click on the “workbench”
Now, in this step let‟s add a freeRTOS kernel source to our project. So far you
have seen that we have to change the port.c for different architectures.
port.c is the one which consist of arch specific codes. Now ,since we are
executing freeRTOS on windows machine itself, we have to add port.c which
is specific to windows machine. port.c is given by freeRTOS itself.
Now, first let‟s add the freeRTOS kernel source to our project.
Go to the path,
Resources_RTOS\FreeRTOS+Simulator
<Your_path>\Resources_RTOS\FreeRTOS+Simulator
FreeRTOSConfig.h, which is nothing but the configuration file for the freeRTOS
Select as below
Now let‟s add all the FreeRTOS header paths to the project, otherwise
compile will issue errors.
First lets add the freertos header files path to the project.
Now again click on “Add” and repeat what we did in last step
This time select the path where we have stored „port‟ related header file
Now, again repeat the step, this time add the path where we have stored
the “FreeRTOsconfig.h”
Great ! Now we have hopefully added all the required paths to the project.
Now you can see in “port.c” it needs winmm.lib , that is a windows specific
library, lets add that to our project.
Right click on the project and select “properties”.
In the libraries section click on „+‟ icon and give the name “winmm”
First “clean” it
Just select it, right click and run as local c/C++ application
You can see our application is now running ,
You can hit the below “red” box to terminate the execution
Great! So we just executed our first demo application in the simulator mode.
All you need is just you windows PC and eclipse software, that‟s it . no
hardware is required.
Note1 : some time launching the application as described above may not
work properly, in that case you can directly go to the “Debug” folder of the
project and execute the “.exe” by just double clicking on it.
See below
Here, give the path where code exercises for the simulator mode is stored.
Great ! Like this you can execute and test all the course exercises on your
windows machine.