Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] can't get printf() to print on UART0 with GNU

2005-02-25 by Anton Erasmus

On 24 Feb 2005 at 17:46, Robert Adsett wrote:

> 
> At 07:03 PM 2/24/05 +0200, Anton Erasmus wrote:
> >If you are using the gcc toolset, then you are probably  using
> >newlib. Hence you need to port newlib to your specific hardware. Look
> >for "Porting Newlib" and you should find a fair amount of info. There
> >is such a porting library for the LPC. You can download it at
> >http://www.aeolusdevelopment.com/Articles/download.html. There are
> >some issues when using the interrupt uart routines in this package. (
> >The assembler portion is not linked in from the library)
> 
> Anton, I'd appreciate it if you could give me some more information on
> this.  Maybe send me a map file of a program illustrating the issue
> with it no linked in.  I'm working on the next release and I'd like to
> try and duplicate and fix this if I can.  There are a couple of
> contact links on the website and they should get through to me.  You
> can just send a quick note and we can exchange address's for more in
> depth conversation if you wish.

Murphy strikes again :-(  - I tried the same thing on my home machine as I did
at work, and of course now I do not get the same thing. I have an older version
of cygwin installed at work, but otherwise everything is the same. I have only compiled
the examples at home - direct link as well as linking with the library. I haven't tried 
executing the examples. Example  test10 executes correctly when linking directly with
the library object files, but when linked agains the library (No errors reported), the 
example does not execute correctly. (No serial output). I will try the hex files I compiled 
at home  on monday to see if both version work.

Regards
  Anton Erasmus
-- 
A J Erasmus

Attachments

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.