EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

"LPC2148_Demo_v120" build under windows with gnuarm and cygwin

Started by acarlosss1 March 19, 2008
--- In l..., "J.C. Wren" wrote:
>
> Don't apologize. In the next release, I'll be sure to mention that
> for you folks that have to suffer working in a Windoze environment.
>
> --jc
>
> On Thu, Mar 20, 2008 at 9:21 PM, Carlos Santos wrote:
> >
> >
> >
> >
> >
> >
> > Hello again,
> >
> > Nevermind the questions about makefiles� It was a problem with
the windoze
> > PATH environment variable� It was because of the openocd entry in
the PATH
> > E.V. (conflicts between cygwin and openocd sh.exe � inside the
"C:\Program
> > Files\openocd-r423\utils\bin" directory). Just removed the 2
entries of the
> > openocd in the PATH and everything compiled at the first time�
> >
> > Sorry for the previous posts about this ;)
> >
> >
> > Regards,
> >
> > Carlos.

I still can't get it to work on windows.There seems to be a problem
with lib.Here's what i get :

c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(freer.o):
In function `_malloc_trim_r':
mallocr.c:(.text+0x48): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x64): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x84): undefined reference to `_sbrk_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(mallocr.o)
: In function `_malloc_r':
mallocr.c:(.text+0x424): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x4cc): undefined reference to `_sbrk_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(stdio.o):
In function `__sclose':
stdio.c:(.text+0xc): undefined reference to `_close_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(stdio.o):
In function `__sseek':
stdio.c:(.text+0x30): undefined reference to `_lseek_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(stdio.o):
In function `__swrite':
stdio.c:(.text+0x84): undefined reference to `_lseek_r'
stdio.c:(.text+0xac): undefined reference to `_write_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(stdio.o):
In function `__sread':
stdio.c:(.text+0xd0): undefined reference to `_read_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(sysclose.o
): In function `close':
sysclose.c:(.text+0xc): undefined reference to `_close_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(sysgettod.
o): In function `gettimeofday':
sysgettod.c:(.text+0x14): undefined reference to `_gettimeofday_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(sysopen.o)
: In function `open':
sysopen.c:(.text+0x2c): undefined reference to `_open_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(sysread.o)
: In function `read':
sysread.c:(.text+0x24): undefined reference to `_read_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(syssbrk.o)
: In function `sbrk':
syssbrk.c:(.text+0xc): undefined reference to `_sbrk_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(systimes.o
): In function `times':
systimes.c:(.text+0xc): undefined reference to `_times_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(sysunlink.
o): In function `unlink':
sysunlink.c:(.text+0xc): undefined reference to `_unlink_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(syswrite.o
): In function `write':
syswrite.c:(.text+0x24): undefined reference to `_write_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(time.o):
I
n function `time':
time.c:(.text+0x1c): undefined reference to `_gettimeofday_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libg.a(makebuf.o)
: In function `__smakebuf':
makebuf.c:(.text+0x3c): undefined reference to `_fstat_r'
collect2: ld returned 1 exit status
make[1]: *** [lpc2148.elf] Error 1
make: *** [all] Error 2

I've also tried to use library from minibasic as mentioned in Dan's
post but that also gave me a bunch of errors.

Regards!

An Engineer's Guide to the LPC2100 Series

--- In l..., "profdc9" wrote:
>
> Okay, to make life easier on everyone (except unfortunately for the
> moderator), I uploaded my entire LPC2148 Demo tree with libraries to
> the Files section. It should just work with "make clean/make" under
> WinARM.
>
> It is at
>
> "LPC2148_Demo_compiled_with_WinARM.zip"
> Dan

Thanks Dan i will for sure check your package but right now i'm still
struggling with my build.Once more i tried to build it with libc
obtained from your minibasic port.After first build i still receive
bunch of errors and so after second time.Issuing a make for third time
gives no errors and i can see .hex file in project folder.Any idea
what's going on?

Regards.
=======================================================================Groups related to lpc2000
=======================================================================
msp430 (388 common members)
http://groups.yahoo.com/group/msp430?v=1&t=ipt&ch=email&pub=groups&slktr0&sec=recg
Computers & Internet/Hardware: Welcome to the MSP430 User's Group! The purpose of...

AVR-Chat (177 common members)
http://groups.yahoo.com/group/AVR-Chat?v=1&t=ipt&ch=email&pub=groups&slktr1&sec=recg
Microprocessors/Microcontrollers: A place for Atmel AVR Microcontroller users to sha...

LTspice (165 common members)
http://groups.yahoo.com/group/LTspice?v=1&t=ipt&ch=email&pub=groups&slktr2&sec=recg
Engineering/Electrical: Dedicated to the exchange of information about LTs...

Homebrew_PCBs (157 common members)
http://groups.yahoo.com/group/Homebrew_PCBs?v=1&t=ipt&ch=email&pub=groups&slktr3&sec=recg
Engineering/Electrical: Designing, making, etching, soldering, printed cir...

e-embedded (151 common members)
http://groups.yahoo.com/group/e-embedded?v=1&t=ipt&ch=email&pub=groups&slktr4&sec=recg
Internet/Internet Appliances: Open-membership mailing list for embedded system d...

The 2024 Embedded Online Conference