I just started using FreeRTOS and I'm trying set up the FreeRTOS simulator to run in Eclipse on Windows 7. So far I have Eclipse Juno and MingW setup and working. I've downloaded the FreeRTOS zip file and extracted it. I've loaded the WIN32-MingW demo project in Eclipse and tried to build the project. When I build it, I get an error saying:
fatal error: direct.h: No such file or directory trcHardwarePort.h /WIN32-MingW/FreeRTOS+Trace Recorder/Include line 52 C/C++ Problem
I've likely missed an important step setting up the something. If anyone can offer some advice it would be greatly appreciated; thanks.
I did reply to this post already - but for some reason the posts I made earlier today have not been entered into the forum.
Second attempt - hopefully this one sticks:
The way the Eclipse project is packaged changed recently to make use of the improved (but still woeful) way that Eclipse manages relative path names. It is possible that it is not working for you because you are not using the most up to date Eclipse version - which is Kepler.
The project now uses paths that are relative to the project's directory, rather than copying all the necessary files into the project's directory. That means the project will only build if you maintain the FreeRTOS directory structure exactly as it is in the .zip file download. The file it is complaining it cannot find comes from the FreeRTOS+Trace source files, which are in the /FreeRTOS-plus directory - which is in the root of the distribution alongside the /FreeRTOS directory. Have you kept the FreeRTOS-Plus directory?
The paths are set relative to the FREERTOSROOT variable. Open up the project's properties window, then select the Resource->Linked Resources category to see the variables, then double click on the FREERTOSROOT variable to see the absolute path the variable resolves too. Is it correct?
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.