News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Need help with setting up C::B for ARM

Started by Jef Patat, September 15, 2008, 03:19:18 PM

Previous topic - Next topic

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:


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.


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.
It's never too late to fail!

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:

make.exe: *** No rule to make target `Debug'.  Stop.
Process terminated with status 2 (0 minutes, 30 seconds)
0 errors, 0 warnings


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
make.exe: *** No rule to make target `Debug'.  Stop.
Process terminated with status 2 (0 minutes, 30 seconds)
0 errors, 0 warnings

This somewhat confused me, I did not create one.  Do I need to provide a makefile or does C::B provide one?

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?

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.
It's never too late to fail!