Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT


Error building WIN32-MingW demo

Posted by sdamkjar on March 30, 2014

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.

Error building WIN32-MingW demo

Posted by rtel on March 31, 2014

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?


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS