HI Andrew,
thanks for you suggestions, they were helpful.
I changed CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE into /dev/tty0 and I also did
some changes on serial device driver to enable the TTY mode on #0 and to
enable Hardware serial device driver for atmel At91 on the /dev/ser0.
Running an example application, i.e. twothreads or serial, I have the
output redirected on the serial specified but after the first line the
serial is blocked.
So, now I'm able to use the ttydiag for diagnostic and tty0 for the
input/output standard but this doesn't work properly yet.
Any idea or suggestion about this?
Thanks in advance
Jaws
----- Original Message -----
From: "Andrew Lunn" <[EMAIL PROTECTED]>
To: "Jaws" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Saturday, September 17, 2005 8:13 PM
Subject: Re: [ECOS] shell application
> On Sat, Sep 17, 2005 at 07:50:21PM +0200, Jaws wrote:
> > Hi Andrew,
> > Usually I use the ethernet channel for gdb (but the same problem I
saw
> > some times ago using gdb on the serial /dev/ttyS3).
> > When I run an application like one of the tests application, all of the
> > output messages are reported by default on the gdb console. the problem
is
> > when an input is required; probably this makes a conflict with gdb
> > In my application the command is this:
> > fgets(in, nINBUF, stdin);
> > and it use the stdin. Probably it is assigned by default with the gdb
> > console.
> > How can I have to do to differentiate the input/output channel to have
all
> > on the serial interface for example?
>
> You need to change the default console.
>
> CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE
>
> It will be using /dev/ttydiag which is being directed to gdb. You need
> to change this to one of your serial ports.
>
> Andrew
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss