Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]

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

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo, Nuvoton Cortex-M23 demo & STM32H745 dual core (AMP) demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

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

Xilinx Microblaze and Zynq partner