EmbDev.net

Forum: ARM programming with GCC/GNU tools GNUARM + FreeRTOS

Author: Ole Bon (olebon)
Posted on:

Hi,

I am trying to study FreeRTOS on ARM. For  this I downloaded FreeRTOS
examples folder and installed GNUARM and UNXUTILS as it is described on
their site. The problem is that I can not compile any examples with
gnuarm:

//******************************************************
C:\FreeRTOS\Demo\ARM7_LPC2106_GCC>make
arm-elf-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith
-Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused
-D R
_FROM_RAM -D GCC_ARM7 -I. -I../../Source/include -I../Common/include -g
-mcpu=arm7tdmi -Tlpc2106-ram.ld -O0 -fomit-frame-pointer
-fno-strict-aliasing -fno-dwarf2-cfi-asm ../../Source/portable/GCC/AR
_LPC2000/portISR.c -o ../../Source/portable/GCC/ARM7_LPC2000/portISR.o
process_begin: CreateProcess((null), arm-elf-gcc -c -Wall -Wextra
-Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
Wmissing-declarations -Wunused -D RUN_FROM_RAM -D GCC_ARM7 -I.
-I../../Source/include -I../Common/include -g -mcpu=arm7tdmi
-Tlpc2106-ram.ld -O0 -fomit-frame-pointer -fno-strict-aliasing
-fno-dwarf2
fi-asm ../../Source/portable/GCC/ARM7_LPC2000/portISR.c -o
../../Source/portable/GCC/ARM7_LPC2000/portISR.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [../../Source/portable/GCC/ARM7_LPC2000/portISR.o] Error 2
//*****************************************************

I have similar output for all GCC examples. The Gnuarm\bin and
UnxUtils\usr\local\wbin are included to the PATH e.g. I can run make or
arm-elf-gcc from the command line without problem.
Author: Christian (Guest)
Posted on:

Hello,

i cannot help you with your toolchain, but i use the one from
codesourcery for Linux. This works fine (for a LPC2387 in my case).
http://www.codesourcery.com/sgpp/lite/arm/portal/release1294
Author: Ole Bon (olebon)
Posted on:

Thank you so much! I've just installed the command line version and
tested with the project I could not compile before - it works!!!
I had only to change -elf- to -none-eabi- and make to cs-make in the
makefile.
Author: Ole Bon (olebon)
Posted on:

Just a little update, maybe it will be useful for someone else. There is
an easy way to setup an Eclipse GUI to work with a free version of the
CodeSourcery that I tested 5 minutes ago and it really works:

http://developers.stf12.net/eclipse-demo

It has some little problems (like the example they refer to is not
included in the latest FreeRTOS release, but it is still available on
their site) which can be fixed relatively easily.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.


webmaster@embdev.netContactAdvertising on EmbDev.net