Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Gnuarm Problems

Gnuarm Problems

2004-06-06 by Benjamin Wende

Hallo

I got the newset version of the gnuarm toolchain installed under WINXP + 
Cygwin.
I build the examples and downloaded it to the lpc2006 and it worked.

But if i try to build the examples in another directory with my own 
makefile the
resulting files are much smaller than the working hex files and they doesnt 
work on the lpc.

I do the following in my makefile:


Compiling:
arm-elf-gcc -mcpu=arm7tdmi -marm -c -o test2.o test2.c
Linking:
arm-elf-ld -Tlpc210x.ld -o test2.hex test2.o
Convert to Intel Hex:
arm-elf-objcopy -O ihex test2.hex
Download:
lpc21isp test2.hex com1 115200 14746


What is wrong with my build process.


Thanks.

Re: [lpc2000] Gnuarm Problems

2004-06-06 by Pablo Bleyer Kocik

Hello.

At 10:04 2004-06-06, you wrote:
>Hallo
>
>I got the newset version of the gnuarm toolchain installed under WINXP +
>Cygwin.
>I build the examples and downloaded it to the lpc2006 and it worked.
>
>But if i try to build the examples in another directory with my own
>makefile the
>resulting files are much smaller than the working hex files and they doesnt
>work on the lpc.
>
>I do the following in my makefile:
>
>
>Compiling:
>arm-elf-gcc -mcpu=arm7tdmi -marm -c -o test2.o test2.c
>Linking:
>arm-elf-ld -Tlpc210x.ld -o test2.hex test2.o
>Convert to Intel Hex:
>arm-elf-objcopy -O ihex test2.hex
>Download:
>lpc21isp test2.hex com1 115200 14746

  Is this *all* what your makefile does?

  How are you setting up your C environment?

  Regards.


--
PabloBleyerKocik /"...I didn't want to be kissing Kevin Spacey.
  pbleyer        / Come on! Lying there naked with rose petals?"
   @... /- Kirsten Dunst on turning down American Beauty

Re: [lpc2000] Gnuarm Problems

2004-06-06 by capiman@t-online.de

Hello,

i think you are generating an exe-file without startup code.
Please take the example lpc2106_gcc.zip from filesection of this group !
Try if this is working for you and take it as base for your further
development.

Regards,

        Martin

----- Original Message ----- 
From: "Benjamin Wende" <bwende@...>
To: <lpc2000@yahoogroups.com>
Sent: Sunday, June 06, 2004 4:04 PM
Subject: [lpc2000] Gnuarm Problems


> Hallo
>
> I got the newset version of the gnuarm toolchain installed under WINXP +
> Cygwin.
> I build the examples and downloaded it to the lpc2006 and it worked.
>
> But if i try to build the examples in another directory with my own
> makefile the
> resulting files are much smaller than the working hex files and they
doesnt
Show quoted textHide quoted text
> work on the lpc.
>
> I do the following in my makefile:
>
>
> Compiling:
> arm-elf-gcc -mcpu=arm7tdmi -marm -c -o test2.o test2.c
> Linking:
> arm-elf-ld -Tlpc210x.ld -o test2.hex test2.o
> Convert to Intel Hex:
> arm-elf-objcopy -O ihex test2.hex
> Download:
> lpc21isp test2.hex com1 115200 14746
>
>
> What is wrong with my build process.
>
>
> Thanks.
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

Re: Gnuarm Problems

2004-06-06 by bwende1

Hallo

What do you exactly mean by "setting up your C environment". Can you 
give me an example waht your makefiles do?

--- In lpc2000@yahoogroups.com, Pablo Bleyer Kocik <pbk@e...> wrote:
Show quoted textHide quoted text
> 
>   Is this *all* what your makefile does?
> 
>   How are you setting up your C environment?

Re: [lpc2000] Gnuarm Problems

2004-06-06 by Robert Adsett

At 04:04 PM 6/6/04 +0200, you wrote:
>I got the newset version of the gnuarm toolchain installed under WINXP +
>Cygwin.
>I build the examples and downloaded it to the lpc2006 and it worked.
>
>But if i try to build the examples in another directory with my own
>makefile the
>resulting files are much smaller than the working hex files and they doesnt
>work on the lpc.
>
>I do the following in my makefile:
>
>
>Compiling:
>arm-elf-gcc -mcpu=arm7tdmi -marm -c -o test2.o test2.c
>Linking:
>arm-elf-ld -Tlpc210x.ld -o test2.hex test2.o
>Convert to Intel Hex:
>arm-elf-objcopy -O ihex test2.hex
>Download:
>lpc21isp test2.hex com1 115200 14746

At a guess, given the information you've presented, it sounds like a path 
problem.  You may be linking to the wrong support library or startup.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: Gnuarm Problems

2004-06-06 by bwende1

I think it works now. I used the boot.s from the example and now my 
led is blinking ;-).

Thanks for your help

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.