Author Topic: ARM template  (Read 18331 times)

Offline electrolot

  • Multiple posting newcomer
  • *
  • Posts: 18
ARM template
« 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.
« Last Edit: September 29, 2008, 04:46:24 pm by electrolot »

mariocup

  • Guest
Re: ARM template
« Reply #1 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

Offline electrolot

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: ARM template
« Reply #2 on: September 29, 2008, 05:48:44 pm »
Hi Mario,

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

Regards
Elektrolot

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: ARM template
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline jeorama

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: ARM template
« Reply #4 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

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: ARM template
« Reply #5 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 .