This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problems with cyg_io_read
- From: Amanda Heyward <amanda_heyward at yahoo dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Cc: Andrew Lunn <andrew at lunn dot ch>
- Date: Fri, 20 Aug 2004 09:52:33 -0700 (PDT)
- Subject: Re: [ECOS] Problems with cyg_io_read
Hi Andrew,
Thanks for the reply. I'm using the anon-cvs, as
that is the only way to get the EB40A working. I
assume that choosing the EB40A template also selects
the drivers from the anon-cvs. my serial port speed is
115200. and I'm not using any flow control.
In my read function, I'm using a cyg_uint8 *array as
the receiving buffer at the application end i.e the
data type cyg_io_read reads into is a cyg_uint8 type.
The sending application from the pc is implemented in
java, and the data type it sends is byte.
Interestingly if I use hyperterminal, and use a chr
array as the receiving buffer, then there is no
problem at all.
could this be the cause of the trouble.
Thanks you very much.
Amanda.
--- Andrew Lunn <andrew@lunn.ch> wrote:
> On Thu, Aug 19, 2004 at 02:16:49PM -0700, Amanda
> Heyward wrote:
> > Thanks again Andrew. I'm using the /dev/ser1 to
> open
> > and read. thats beacause I'm using the ttyS0 for
> GDB.
> > Should I have to set some buffer limit somewhere.
>
> Hi Amanda
>
> The defaults should be fine i think. The EB40A uses
> the at91 serial
> driver. This keeps a 128 byte buffer in the driver.
> Are you running
> the serial port at very high speeds? Do you have any
> sort of flow
> control? Are you using anoncvs or eCos 2.0. There
> was a major rewrite
> of the at91 serial driver after eCos 2.0 was
> released.
>
> 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
>
>
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss