Quality RTOS & Embedded Software

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


Loading

Building Coldfire 52235 demo - Eclipse, how?

Posted by M Beronius on January 22, 2009

Hi,

Finally, I am at the point where I am trying my first steps with FreeRTOS!

But, I run in to problem immedialetly, in that I can't even build the demo example;

I have FreeRTOS 5.1.1, gcc version 4.3.2 (Sourcery G++ Lite 4.3-54)

Since I normally don't use Eclipse, I simply tried to 'make' from within the folder where the makefile is, and I got some path errors, which might be expected. (see output below)

So I instead tried using Eclipse, where I selected the workspace as suggested in the guide, and I set the root dir for FreeRTOS, I hit refresh on the project, and 'Build All' and .. and .. Nothing! No output window or anything. Nothing gets build and no errors...
Since I never used Eclipse, I don't know how to carry on from here.

Or should I instead try to make a new makefile, and forget about Eclipse?



Output from make at command line;
~/projects/FreeRTOS/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo $ make
m68k-elf-gcc -I./webserver -I"./../../Common/ethernet/FreeRTOS-uIP" -I"./../../../Source/include" -I"include" -I"./../../Common/Minimal/../include" -I"./../../../Source/portable/GCC/ColdFire_V2" -I./MCF5223x -I. -D COLDFIRE_V2_GCC -D PACK_STRUCT_END=__attribute\(\(packed\)\) -D ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\) -O0 -D bktPRIMARY_PRIORITY=4 -D bktSECONDARY_PRIORITY=3 -fno-strict-aliasing -g3 -gdwarf-2 -Wall -Wextra -c -ffunction-sections -fdata-sections -fmessage-length=0 -funsigned-char -Wextra -mcpu=52235 -MMD -MP -MF"bin/main.d" -MT"bin/main.d" -o"bin/main.o" "main.c"
In file included from ./../../../Source/include/FreeRTOS.h:66,
from main.c:79:
./../../../Source/include/portable.h:206:65: error: ../../../source/portable/GCC/ColdFire_V2/portmacro.h: No such file or directory
In file included from ./../../../Source/include/FreeRTOS.h:66,
from main.c:79:
./../../../Source/include/portable.h:264: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./../../../Source/include/portable.h:277: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xPortStartScheduler'
In file included from main.c:79:
.


Cheers,
Micael

RE: Building Coldfire 52235 demo - Eclipse, h

Posted by MEdwards on January 22, 2009
Its complaining it cannot find portmacro.h, which it is expecting to find in ../../../source/portable/GCC/ColdFire_V2. This path is relative to the location of the makefile.

I've just taken a look the files are in the correct places relative to each other, so I'm going to guess that you are building under Linux. Is this right? If so then the capitalization of the path is wrong. For a start Source should be with a capital S. Try checking the case of the letters. If this is the problem report it to Richard.

RE: Building Coldfire 52235 demo - Eclipse, how?

Posted by M Beronius on January 23, 2009

Yes!

So simple, yet so easy to miss!

There's a few other issues with building this under linux;

As noted, 'source' needs to be 'Source' on line 206 in portable.h.

Make file;
m68K-elf-as should be m68k-elf-as
m68K-elf-objcopy should be m68k-elf-objcopy


Many thanks for your help! (I Will report this to Richard)

- Micael


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


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

Latest News

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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