Author Topic: ARM LPC2478  (Read 11143 times)

Offline Gravity

  • Single posting newcomer
  • *
  • Posts: 3
ARM LPC2478
« on: June 06, 2009, 01:23:16 pm »
Hi,

I've attempted to create and ARM project using the wizard using  the yagarto tool chain (4.2.1).

I get the same responses as this post

http://forums.codeblocks.org/index.php/topic,9282.0.html

i.e 'wizard does'nt know how to set...' etc.

Also compiling the project I get

c:/gccfd/yagarto/bin/../lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld.exe: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status

so, why is it including crti.o? Does CodeBlocks add its own option as well as the compiler/project options?

Cheers

G

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: ARM LPC2478
« Reply #1 on: June 06, 2009, 02:59:04 pm »
I get the same responses as this post
http://forums.codeblocks.org/index.php/topic,9282.0.html
So you also know that this is fixed in a nightly.

c:/gccfd/yagarto/bin/../lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld.exe: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status
This is an install issue of your tool chain (are you using Vista?!). Update the compiler. This is not a C::B issue, you would get the same error if you compile at the command line.
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 Gravity

  • Single posting newcomer
  • *
  • Posts: 3
Re: ARM LPC2478
« Reply #2 on: June 07, 2009, 07:36:50 pm »
Hi,

Thanks. I updated CB to the lastest nightly build and it mostly worked.

But for
[100.0%] arm-elf-g++.exe -L"C:\Program Files\GNUARM\lib"  -o default\ARM2.elf default\src\vectors.o default\src\main.o   -s -Wl,-Map,map.txt -mcpu=arm7tdmi -T ld/target_2138.ld 
collect2: ld returned 53 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


What ARM tool chain/version is recommended?

Offline Gravity

  • Single posting newcomer
  • *
  • Posts: 3
Re: ARM LPC2478
« Reply #3 on: June 08, 2009, 11:17:12 pm »
I've downloaded the latest YAGARTO and have got it building\ debugging.

I'm unable to stop the debugger using the stop button though.