Sign in

Not a member? | Forgot your Password?

Search AT91SAM

Search tips

Subscribe to AT91SAM

Free PDF Downloads

Advanced Linux Programming

What Every Programmer Should Know About Memory

Introduction to Embedded Systems

C++ Tutorial

Embedded Systems - Theory and Design Methodology

Microcontroller Programming and Interfacing

Introduction to Microcontrollers


More Free PDF Downloads

Discussion Groups

See Also

ElectronicsDSPFPGA

Find us on Facebook





Discussion Groups | AT91SAM ARM | newlib and windows

For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU. This group is to exchange information to help users get started and learn how to use the devices.

newlib and windows - tasbihmr - Nov 21 4:41:17 2008

Hello,

I need to have the newlib libraries available in windows for a compile
that I am performing, however the only new library I have is what is
supposed to be in the yagarto folders installed, however I am unable
to compile using what is already there, because I simply cannot find
any library related to newlib. So how can I have the newlib
functionality on windows, I mean the libraries for example. Is it I
mean necessary to compile from source? Can I not just get it in some
software package, for example included in a gcc package for windows? I
am getting an error in my compile, which is definitely due to newlib,
but I do't understand what since I am supposed to be having newlib
already:

c:/program
files/yagarto/bin/../lib/gcc/arm-elf/4.2.2/../../../../arm-elf/bin/ld.exe:
cannot find -lnewlib-lpc
collect2: ld returned 1 exit status

Any body can give me any hint with the above error message and how to
fix the newlib on windows?

Thank you and regards.


_____________________________
 Free pdf download: What Every Programmer Should Know About Memory.


Re: newlib and windows - &quo...@aeolusdevelopment.com" - Nov 21 13:06:41 2008

tasbihmr wrote
>
>c:/program
>files/yagarto/bin/../lib/gcc/arm-elf/4.2.2/../../../../arm-elf/bin/ld.exe:
>cannot find -lnewlib-lpc
>collect2: ld returned 1 exit status
>
>Any body can give me any hint with the above error message and how to
>fix the newlib on windows?

It's not complaining that newlib is missing (I don't know if Yagarto uses
newlib or not). It is complaining that newlib-lpc is missing.

newlib-lpc is an adaptation layer for newlib that provides specific I/O
(and some chip specific functions) for the LPC200 (NXP) series of ARM
processors. It's not meant for the Atmel families, but some of the
functions are not Atmel specific so would likely work w/o changing.

Having said that it would be easy to adapt it to perform similar functions
for the Atmel series.

The source and documentation are available at

http://www.aeolusdevelopment.com/Articles/docandapp.html
http://www.aeolusdevelopment.com/Articles/download.html

Robert
--------------------------------
myhosting.com - Premium Microsoft Windows and Linux web and application
hosting - http://link.myhosting.com/myhosting



Re: newlib and windows - Jonathan Dumaresq - Nov 27 9:55:57 2008

Hi,

I think you have a path space problem

You should change you env path to remove all the space in your yagarto path
and openocd if you have it installed.

Regards

Jonathan

-----Message d'origine-----
De: A... [mailto:A...] De la part de
s...@aeolusdevelopment.com
Envoy 21 novembre 2008 13:07
: a...; a...
Objet: RE: [AT91SAM] newlib and windows

tasbihmr wrote
>
>c:/program
>files/yagarto/bin/../lib/gcc/arm-elf/4.2.2/../../../../arm-elf/bin/ld.exe:
>cannot find -lnewlib-lpc
>collect2: ld returned 1 exit status
>
>Any body can give me any hint with the above error message and how to
>fix the newlib on windows?

It's not complaining that newlib is missing (I don't know if Yagarto uses
newlib or not). It is complaining that newlib-lpc is missing.

newlib-lpc is an adaptation layer for newlib that provides specific I/O
(and some chip specific functions) for the LPC200 (NXP) series of ARM
processors. It's not meant for the Atmel families, but some of the
functions are not Atmel specific so would likely work w/o changing.

Having said that it would be easy to adapt it to perform similar functions
for the Atmel series.

The source and documentation are available at

http://www.aeolusdevelopment.com/Articles/docandapp.html
http://www.aeolusdevelopment.com/Articles/download.html

Robert
--------------------------------
myhosting.com - Premium Microsoft Windows and Linux web and application
hosting - http://link.myhosting.com/myhosting


_____________________________
 Free pdf download: Introduction to Embedded Systems.