Code::Blocks Forums

User forums => Embedded development => Topic started by: electrolot on September 29, 2008, 04:13:01 pm

Title: ARM template
Post by: electrolot on September 29, 2008, 04:13:01 pm
I use svn 5231 of C::B. I'm trying to build ARM project. I see that this version have template for ARM Project. So I choose ARM project templates, next I select olimex-lpc213x and lpc2138. I've go following warnings:
Code
The wizard doesn't know how to setup warning flags for this compiler.
The wizard doesn't know how to setup debug flags for this compiler.
The wizard doesn't know how to setup optimisation flags for this compiler.

I use Sourcery G++ Lite toolchain.
When I try build and I've got errors:
Code
default\src\vectors.o In function `warm_reset':
(.text+0x114)  undefined reference to `IrqInit'
default\src\vectors.o  In function `warm_reset':
(.text+0x140)  undefined reference to `_exit
||=== Build finished: 2 errors, 0 warnings ===

Does someone successful use ARM template and can give me advice how fix this errors?
Thanks in advance.
Title: Re: ARM template
Post by: mariocup on September 29, 2008, 05:18:15 pm
Hi electrolot,

I wrote the ARM wizards and tested them with the ARM toolchain from HighTec (www.hightec-rt.com).  Since Sourcery G++ uses also the gcc, the wizards should work with this toolchain. What seems strange to me is the message:

Code
The wizard doesn't know how to setup warning flags for this compiler.

I am using gcc 3.4.5 for ARM projects. I will try to test it with Sourcery and newer gcc versions but this may take some time.

Bye,

Mario
Title: Re: ARM template
Post by: electrolot on September 29, 2008, 05:48:44 pm
Hi Mario,

thanks for fast answer.
I'm using gcc version 4.2.3.

Regards
Elektrolot
Title: Re: ARM template
Post by: MortenMacFly on September 30, 2008, 11:33:00 am
Code
The wizard doesn't know how to setup warning flags for this compiler.
The reason for this is that we keep generic steps of the compiler setup (like setting the warning flag) in a common (library-like) script. Within this script you have to add the compiler in question if it supports a warning flag. I believe the compiler in question is just missing in the "if" clause there.
Title: Re: ARM template
Post by: jeorama on May 06, 2009, 03:28:10 am
<The wizard doesn't know how to setup warning flags for this compiler.>

hi, can you explain more detail to solve this issue, I count up this issue too. thanks
Title: Re: ARM template
Post by: mmkider on May 06, 2009, 06:06:34 am
<The wizard doesn't know how to setup warning flags for this compiler.>

hi, can you explain more detail to solve this issue, I count up this issue too. thanks

patched in the  rev5536 of svn .