This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Serial I/O on the MBX860


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]