Quality RTOS & Embedded Software

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


problem with demo app makefile

Posted by biker126 on September 24, 2007
hi everyone

I've managed to run the freeRTOS/uIP demo for the LPC2368 using eclipse and GCC.
But since the (folder-) structure of that demo project is really messy (for example not all freeRTOS code is inside the project folder but linked into it instead...) I tried to change the folders a bit. I of course adjusted the "-I ..." compiler flags and adjusted the paths to the c-files (under the sources definition).

my new project is compiling without any errors so it seems that the compiler finds every include-file etc. I also get an object file for every needed source and an elf file.

however, when i flash the bin file this new project doesnt run at all. when I pause the programm, after the scheduler is started, I end up in _dabt() (data abort).

I'm not that familiar with writing makefiles so I'm guessing something went wrong with linking or so. Maybe anyone got some ideas?

RE: problem with demo app makefile

Posted by Richard on September 24, 2007
>But since the (folder-) structure of that demo project is really messy
>(for example not all freeRTOS code is inside the project folder but linked
>into it instead...)

The FreeRTOS.org directory structure is suitably organised for a portable project. See http://www.freertos.org/a00017.html for a full description.

There is no way that the FreeRTOS.org code could be included in the project structure as the same code is used for many, many, different projects. They cannot all be in the same tree.

The problem arises from Eclipses inability to manage a C project. Eclipse does some really complex things really well, and some basic things (like selecting which files are in a build) very badly.

Did you change any of the build options? Or just the location of the files that are included? Are you using the same startup file?


RE: problem with demo app makefile

Posted by biker126 on September 25, 2007
all I did was changing the location of the files so that every source file is inside the project folder. I ofcourse adjusted the paths in the makefile for the includes ( -I ...) and for the sources.

The interessting thing tho is:
When i made a completely new ecplipse project with importing the sources and the makefile and everything else (ld script etc) it didnt work...

however, when I take the original project (the one provided from freeRTOS.org) and simply changed the folder structure it works...

so I'm guessing there might be some eclipse project options which are not present in the makefile (for example the original project uses "GNU C Compiler" toolchain which aint available to select when I make a new project...).

RE: problem with demo app makefile

Posted by saiberion on September 25, 2007
I also use Eclipse for my projects. I also adjusted the source paths but I kept the structure for FreeRTOS, the port files and the memory manager. The rest is in different places. And for the file names of the project I tricked Eclipse because if there are 2 files with the same name eclipse can't find out the path to the one where there error is located. The files of each module are tagged so there is no duplicate filename and I can jump from ther error list to the correct position.

And for the dabt: did you step through and can tell at which location in the code it comes to an error? In my case dabt mostly appear if there are problems with stack, with tick dependend functions (like xQueueReceive) are either not called within a task or in an ISR or task creation was not successfull but the code doesn't check on that and tries to use this task.

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

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists