Yahoo Groups archive

Lpc2000

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

Message

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

2005-02-25 by tiogate

Yes, you are right. I've overridden write() and now printf outputs 
to UART0. Thank you.

Fernando


--- In lpc2000@yahoogroups.com, "ntfreak2000" <ntfreak2@h...> wrote:
> 
> Keil gcc uses uclibc, the version you require is:
> 
> int write (int file, char * ptr, int len)
> {
>     return len;
> }
> All the system functions are just non reentrant versions.
> 
> Be careful of uisng uclibc as a clib, even though it is a better 
lib 
> for smaller devices it comes under lgpl rather than gpl. This is 
only 
> really a problem if you are statically linking with the libs.
> 
> Regards
> Spen

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.