This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Serial I/O on the MBX860
- To: guinan at bluebutton dot com
- Subject: Re: [ECOS] Serial I/O on the MBX860
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Thu, 03 Feb 2000 15:51:37 +0000
- CC: Erik Theisen <etheisen at mindspring dot com>, ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.LNX.4.10.10002030514330.14080-100000@gemini.home.net>
Jamie Guinan wrote:
>
> On Thu, 3 Feb 2000, Erik Theisen wrote:
>
> > Hi,
> >
> > I have been trying to get stdin working on
> > the MBX860 using fgets(). This seems to result in
> > a hung CPU.
> >
> > How do I make stdin work?
>
> Hi Erik,
>
> In a nutshell, I think line buffering is broken in the eCos stdiostream
> code.
>
> Try entering several lines of text until you pass 256 bytes, and
> see if your code continues after that.
I think I know the eCos 1.2.1 problem you mean - it was because of a poorly
chosen default for CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE, which was set to
/dev/haldiag instead of /dev/ttydiag. Try the second one and see what
happens. If it's still broke, then I'll have a closer look :-).
Jifl