FreeRTOS project on Windows 7

prabhuvd wrote on Wednesday, August 13, 2014:

Has any one built the project(FreeRTOSv8.0.1\FreeRTOS\Demo\WIN32-MingW) successfully on windows 7 ?

** My Environment: **
I’m using Eclipse Kepler and MinGW compiler (gcc (GCC) 4.8.1)

I get the build error
** “FreeRTOS\Demo\PC/FreeRTOSConfig.h:69:17: fatal error: i86.h: No such file or directory” **

Appreciate your help in advance.

rtel wrote on Wednesday, August 13, 2014:

I can build it on Windows 7 without any problems using GCC 4.8.1, but my FreeRTOSConfig.h is not including i86.h (or any other header file for that matter). Did you modify the anything (project files, source files, directory structure, anything) from the main FreeRTOS .zip file before you tried building? Did you follow the documentation page for that demo on how to import the project into Eclipse?

Regards.

prabhuvd wrote on Wednesday, August 13, 2014:

You’re right , the FreeRTOSConfg.h in the project does not refere to **i86.h ** but during the building it picks the FreeRTOSConfg.h from project “PC” .Attached the building below.
Please help.

Here is some additional details.
Version: Kepler Release
Build id: 20130614-0229

Downloaded FreeRTOS from https://sourceforge.net/projects/freertos/FreeRTOSv8.0.1.exe
FreeRTOS version : FreeRTOSv8.0.1
GCC 4.8.1

Steps followed to import Eclipse

  • Select ‘Import’ from the Eclipse ‘File’ menu.
  • In the dialogue box, select ‘General | Existing Projects Into Workspace’. .
    *Selected FreeRTOS/Demo/WIN32-MingW as the directory and this brings up RTOSDemo, which is the project that i imported.

Build Log :

Info: Internal Builder is used for build
gcc “-IC:\WA\Eclipse\FreeRtos\FreeRTOSv8.0.1\FreeRTOS\Source\include” “-IC:\WA\Eclipse\FreeRtos\FreeRTOSv8.0.1\FreeRTOS-Plus\Source\FreeRTOS-Plus-Trace\Include” “-IC:\WA\Eclipse\FreeRtos\FreeRTOSv8.0.1\FreeRTOS\Demo\PC” -O2 -g -Wall -c -fmessage-length=0 -o “FreeRTOS_Source\croutine.o” “…\…\…\Source\croutine.c”
In file included from C:\WA\Eclipse\FreeRtos\FreeRTOSv8.0.1\FreeRTOS\Source\include/FreeRTOS.h:97:0,
from …\Source\croutine.c:66:
C:\WA\Eclipse\FreeRtos\FreeRTOSv8.0.1\FreeRTOS\Demo\PC/FreeRTOSConfig.h:69:17: fatal error: i86.h: No such file or directory
#include <i86.h>

^

rtel wrote on Wednesday, August 13, 2014:

…and you are sure the files are unmodified from those in a fresh FreeRTOS installation, because I I don’t think the Eclipse project settings are set to use -O2 in the command line, but that is what is shown in your build log.

I suspect your FREERTOS_ROOT variable is pointing to the wrong place. When you imported the project, did you have the “copy project into workspace” check box checked? If so, can you try again with a clean unzip of FreeRTOS and import with the check box unchecked.

If you still have a problem please post a screen shot of the project in Eclipse with the FreeRTOS Source code visible (expanded) in the project explorer - as per the attachement to this post which shows how it should look.

Regards.

prabhuvd wrote on Wednesday, August 13, 2014:

Thanks a lot !

FREERTOS_ROOT was pointing to a folder one level up …!! huh !
It works perfectly fine now …