EmbDev.net

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


von Ole B. (olebon)


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

von Christian (Guest)


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

von Ole B. (olebon)


Rate this post
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 
makefile.

von Ole B. (olebon)


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

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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.