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

von Ole B. (olebon)

Rate this post
0 useful
not useful

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 

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 
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.

von Christian (Guest)

Rate this post
0 useful
not useful

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).

von Ole B. (olebon)

Rate this post
0 useful
not useful
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 

von Ole B. (olebon)

Rate this post
0 useful
not useful
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:


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.


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]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.