Code::Blocks

User forums => Embedded development => Topic started by: arkosmc on April 03, 2009, 02:43:49 am

Title: setting up Code::Blocks (Windows) to work with GNUARM (AT91SAM7S)
Post by: arkosmc on April 03, 2009, 02:43:49 am
Hi everyone,
sorry for my spelling and grammar, but it`s late and I am not fluent with english...

I`ve been trying for a bit of time to set up codeblocks, but I failed...
Firstly I`ve made everything from this site:
http://www.frozeneskimo.com/electronics/arm-tutorials/setting-up-the-arm-gcc-toolchain-on-windows/

but when i tried to follow these instructions:
http://www.frozeneskimo.com/electronics/arm-tutorials/adapting-codeblocks-ide-for-arm-development/
I`ve met some problems, because I have got a newest version of C::B...
It is impossible to change build method in Settings->Compiler and Debugger->Other

Is there any possibility of creating a little how-to ?
Title: Re: setting up Code::Blocks to work with GNUARM (AT91SAM7S)
Post by: deadneurons on April 03, 2009, 05:04:43 am
hi it's been while since I play with CB, but I'll try.
If you want to use custom makefile, goto Project->Properties then put a checkmark on the box that says "This is a custom Makefile", then create or rename the build targets that matches your Makefiles' target. Then from the main window select your target from the dropdown "Build target".
That's all I got.

good luck!
Title: Re: setting up Code::Blocks (Windows) to work with GNUARM (AT91SAM7S)
Post by: arkosmc on April 03, 2009, 10:55:23 pm
Quote from: deadneurons
then create or rename the build targets that matches your Makefiles' target. Then from the main window select your target from the dropdown "Build target".

I am not familiar with makefiles, so if it is not a problem for you... Could you explain me exactly what to do? Maybe a little example - I will be really thankful.

Now I am wondering about usefulness of cygwin or GNU-ARM... As I saw, C::B has a gnu compiler for ARM processors, but I haven`t found any description or FAQ how to use it...

Arek
Title: Re: setting up Code::Blocks (Windows) to work with GNUARM (AT91SAM7S)
Post by: deadneurons on April 03, 2009, 11:06:17 pm
You don't necessarily need the Makefile, you can use the CB builder, unfortunately I can't help you with that.
For samples you can get some  here _http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index_at91.html
If you haven't got a compiler yet, go here _http://yagarto.de/