[ECOS] Serial I/O on the MBX860

Jonathan Larmour jlarmour@redhat.co.uk
Thu Feb 3 07:51:00 GMT 2000


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


More information about the Ecos-discuss mailing list