User forums > Embedded development
Need help with setting up C::B for ARM
(1/1)
Jef Patat:
Hi all,
for the moment I'm using crossstudio as my IDE for embedded development. I came accross C::B and think this is a superb IDE at first sight. I'm trying to configure it for my purposes but I got stuck. When I try to compile my project I get:
--- Code: ---Compiling: ..\..\CrossStudio\branches\Firmware\LED.c
Execution of 'arm-elf-gcc.exe -c ..\..\CrossStudio\branches\Firmware\LED.c -o obj\Debug\CrossStudio\branches\Firmware\LED.o' in 'D:\JBV\codeblocks\Firmware' failed.
Nothing to be done.
--- End code ---
But when I execute 'arm-elf-gcc.exe -c ..\..\CrossStudio\branches\Firmware\LED.c -o obj\Debug\CrossStudio\branches\Firmware\LED.o' in the folder D:\JBV\codeblocks\Firmware everything runs fine. Any ideas?
Joerg:
do you use a makefile?
'Nothing to be done' sounds like there was no change in the source?
do you get this error with this file only, and the other files of
your project gets compiled?
I use a makefile with my ARM projects and can compile
with C::B without problems.
Jef Patat:
Under project settings I have set Makefile: 'Makefile' and I did not check the checkbox 'This is a custom Makefile'
I have tried with checking the checkbox and providing the file in the attach (my chip is LPC2378) but that got me to:
--- Code: ---make.exe: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 30 seconds)
0 errors, 0 warnings
--- End code ---
This somewhat confused me, I did not create one. Do I need to provide a makefile or does C::B provide one?
I must admit that I'm completely new to makefiles, but I'm eager to learn and get this working on my board.
The source indeed did not change, but that should not matter with a rebuild, should it?
All help is appreciated.
thank you,
Jef
[attachment deleted by admin]
Joerg:
--- Quote from: Jef Patat on September 15, 2008, 04:32:27 pm ---
--- Code: ---make.exe: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 30 seconds)
0 errors, 0 warnings
--- End code ---
This somewhat confused me, I did not create one. Do I need to provide a makefile or does C::B provide one?
--- End quote ---
You do not need a makefile with C::B, but I always used one.
You can add or remove build targets under Project/Poperties.
You can select the acitve build target in the tab at the top.
Your makefile has only an 'all' target, no Debug target.
You can create an 'all' target and switch to it, or change the call of the
make program under Project/Build Options.
--- Quote ---The source indeed did not change, but that should not matter with a rebuild, should it?
--- End quote ---
Don't no how C::B handles a rebuild without makefile.
With make it probably does a 'clean' and then 'all'.
The make program only does something if your sources had changed,
though it fails sometimes.
Navigation
[0] Message Index
Go to full version